Package com.sun.enterprise.security.auth
Class AuthenticationStatusImpl
java.lang.Object
com.sun.enterprise.security.auth.AuthenticationStatusImpl
- All Implemented Interfaces:
AuthenticationStatus
,Serializable
This class implements an AuthenticationStatus object.
- Author:
- Harish Prabandham
- See Also:
-
Field Summary
Fields inherited from interface com.sun.enterprise.security.auth.AuthenticationStatus
AUTH_CONTINUE, AUTH_EXPIRED, AUTH_FAILURE, AUTH_SUCCESS
-
Constructor Summary
ConstructorDescriptionAuthenticationStatusImpl
(String principalName, String authMethod, String realm, int status) This constructs a new AuthenticationStatus object. -
Method Summary
Modifier and TypeMethodDescriptionThis method returns the "method" used to perform authenticationbyte[]
This method returns a byte array of zero length, since there's no auth specific data needed for passphrase based authentication.byte[]
This method returns a byte array of zero length, since there's no continuation data needed for passphrase based authentication.This method returns the string representation of the principal that was authenticated.This method returns the name of realm where the authentication was performed.int
This method returns the status of the authentication
-
Constructor Details
-
AuthenticationStatusImpl
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 Details
-
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
This method returns the name of realm where the authentication was performed.- Returns:
- A java.lang.String representation of the realm.
-
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
This method returns the string representation of the principal that was authenticated.- Returns:
- A java.lang.String representation of the Principal.
-