Package com.icegreen.greenmail.smtp.auth
Class PlainAuthenticationState
- java.lang.Object
-
- com.icegreen.greenmail.smtp.auth.PlainAuthenticationState
-
- All Implemented Interfaces:
AuthenticationState,UsernameAuthentication
public class PlainAuthenticationState extends Object implements AuthenticationState, UsernameAuthentication
Details from theAuthCommand.AuthMechanism.PLAINauthorization mechanism, when that mechanism was used for authentication.
-
-
Constructor Summary
Constructors Constructor Description PlainAuthenticationState(SaslMessage saslMessage)PlainAuthenticationState(String authorizationId, String authenticationId, String password)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAuthenticationId()StringgetAuthorizationId()StringgetPassword()StringgetType()StringgetUsername()
-
-
-
Constructor Detail
-
PlainAuthenticationState
public PlainAuthenticationState(SaslMessage saslMessage)
- Parameters:
saslMessage- The parsed message sent by the client with theAUTHcommand.
-
PlainAuthenticationState
public PlainAuthenticationState(String authorizationId, String authenticationId, String password)
- Parameters:
authorizationId- The authorization ID sent by the client with theAUTHcommand.authenticationId- The authentication ID sent by the client with theAUTHcommand.password- The password sent by the client with theAUTHcommand.
-
-
Method Detail
-
getType
public String getType()
- Specified by:
getTypein interfaceAuthenticationState- Returns:
- The type of the used authentication mechanism, e.g.
PLAINorLOGIN.
-
getAuthorizationId
public String getAuthorizationId()
- Returns:
- The authorization ID sent by the client with the
AUTHcommand.
-
getAuthenticationId
public String getAuthenticationId()
- Returns:
- The authentication ID sent by the client with the
AUTHcommand.
-
getPassword
public String getPassword()
- Returns:
- password The password sent by the client with the
AUTHcommand.
-
getUsername
public String getUsername()
- Specified by:
getUsernamein interfaceUsernameAuthentication
-
-