Package com.icegreen.greenmail.smtp.auth
Class XOAuth2AuthenticationState
- java.lang.Object
-
- com.icegreen.greenmail.smtp.auth.XOAuth2AuthenticationState
-
- All Implemented Interfaces:
AuthenticationState,UsernameAuthentication
public class XOAuth2AuthenticationState extends Object implements AuthenticationState, UsernameAuthentication
-
-
Constructor Summary
Constructors Constructor Description XOAuth2AuthenticationState(String authenticationString)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAccessToken()StringgetType()StringgetUsername()
-
-
-
Constructor Detail
-
XOAuth2AuthenticationState
public XOAuth2AuthenticationState(String authenticationString)
- Parameters:
authenticationString- base64("user=" {User} "^Aauth=Bearer " {Access Token} "^A^A")
-
-
Method Detail
-
getType
public String getType()
- Specified by:
getTypein interfaceAuthenticationState- Returns:
- The type of the used authentication mechanism, e.g.
PLAINorLOGIN.
-
getUsername
public String getUsername()
- Specified by:
getUsernamein interfaceUsernameAuthentication
-
getAccessToken
public String getAccessToken()
-
-