Record Class MailerSpec.OAuth2
java.lang.Object
java.lang.Record
io.leandev.appfuse.mail.MailerSpec.OAuth2
- Record Components:
clientId- client idclientSecret- client secrettenantId- 授權伺服器的租戶(如 Azure AD tenant);與資料隔離無關scope- scopetokenEndpoint- token 端點account- 寄件帳號(OAuth2 的 username)
- Enclosing class:
MailerSpec
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccount()Returns the value of theaccountrecord component.clientId()Returns the value of theclientIdrecord component.Returns the value of theclientSecretrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.scope()Returns the value of thescoperecord component.tenantId()Returns the value of thetenantIdrecord component.Returns the value of thetokenEndpointrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OAuth2
public OAuth2(String clientId, String clientSecret, String tenantId, String scope, String tokenEndpoint, String account) Creates an instance of aOAuth2record class.- Parameters:
clientId- the value for theclientIdrecord componentclientSecret- the value for theclientSecretrecord componenttenantId- the value for thetenantIdrecord componentscope- the value for thescoperecord componenttokenEndpoint- the value for thetokenEndpointrecord componentaccount- the value for theaccountrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
clientId
-
clientSecret
Returns the value of theclientSecretrecord component.- Returns:
- the value of the
clientSecretrecord component
-
tenantId
-
scope
-
tokenEndpoint
Returns the value of thetokenEndpointrecord component.- Returns:
- the value of the
tokenEndpointrecord component
-
account
-