Package com.sun.enterprise.security.auth
Class AuthenticationStatusImpl
- java.lang.Object
-
- com.sun.enterprise.security.auth.AuthenticationStatusImpl
-
- All Implemented Interfaces:
AuthenticationStatus
,Serializable
public class AuthenticationStatusImpl extends Object implements AuthenticationStatus
This class implements an AuthenticationStatus object.- Author:
- Harish Prabandham
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface com.sun.enterprise.security.auth.AuthenticationStatus
AUTH_CONTINUE, AUTH_EXPIRED, AUTH_FAILURE, AUTH_SUCCESS
-
-
Constructor Summary
Constructors Constructor Description AuthenticationStatusImpl(String principalName, String authMethod, String realm, int status)
This constructs a new AuthenticationStatus object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAuthMethod()
This method returns the "method" used to perform authenticationbyte[]
getAuthSpecificData()
This method returns a byte array of zero length, since there's no auth specific data needed for passphrase based authentication.byte[]
getContinuationData()
This method returns a byte array of zero length, since there's no continuation data needed for passphrase based authentication.String
getPrincipalName()
This method returns the string representation of the principal that was authenticated.String
getRealmName()
This method returns the name of realm where the authentication was performed.int
getStatus()
This method returns the status of the authentication
-
-
-
Constructor Detail
-
AuthenticationStatusImpl
public AuthenticationStatusImpl(String principalName, String authMethod, String realm, int status)
This constructs a new AuthenticationStatus object.- Parameters:
The
- name of the principalThe
- name of the realm that authenticated the principalThe
- method used for authenticating the principalThe
- status of the authentication
-
-
Method Detail
-
getStatus
public int getStatus()
This method returns the status of the authentication- Specified by:
getStatus
in interfaceAuthenticationStatus
- Returns:
- An integer value indicating the status of the authentication
-
getContinuationData
public byte[] getContinuationData()
This method returns a byte array of zero length, since there's no continuation data needed for passphrase based authentication.- Specified by:
getContinuationData
in interfaceAuthenticationStatus
- Returns:
- A byte array of zero length.
-
getAuthSpecificData
public byte[] getAuthSpecificData()
This method returns a byte array of zero length, since there's no auth specific data needed for passphrase based authentication.- Specified by:
getAuthSpecificData
in interfaceAuthenticationStatus
- Returns:
- A byte array of zero length.
-
getRealmName
public String getRealmName()
This method returns the name of realm where the authentication was performed.- Returns:
- A java.lang.String representation of the realm.
-
getAuthMethod
public String getAuthMethod()
This method returns the "method" used to perform authentication- Returns:
- A java.lang.String representation of the method used. In passphrase based authentication it returns the string "password".
-
getPrincipalName
public String getPrincipalName()
This method returns the string representation of the principal that was authenticated.- Returns:
- A java.lang.String representation of the Principal.
-
-