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 the
AuthCommand.AuthMechanism.PLAIN authorization mechanism, when
that mechanism was used for authentication.-
Constructor Summary
ConstructorsConstructorDescriptionPlainAuthenticationState(SaslMessage saslMessage) PlainAuthenticationState(String authorizationId, String authenticationId, String password) -
Method Summary
-
Constructor Details
-
PlainAuthenticationState
- Parameters:
saslMessage- The parsed message sent by the client with theAUTHcommand.
-
PlainAuthenticationState
- 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 Details
-
getType
- Specified by:
getTypein interfaceAuthenticationState- Returns:
- The type of the used authentication mechanism, e.g.
PLAINorLOGIN.
-
getAuthorizationId
- Returns:
- The authorization ID sent by the client with the
AUTHcommand.
-
getAuthenticationId
- Returns:
- The authentication ID sent by the client with the
AUTHcommand.
-
getPassword
- Returns:
- password The password sent by the client with the
AUTHcommand.
-
getUsername
- Specified by:
getUsernamein interfaceUsernameAuthentication
-