FileDocCategorySizeDatePackage
AuthenticationStatusImpl.javaAPI DocGlassfish v2 API4453Fri May 04 22:35:26 BST 2007com.sun.enterprise.security.auth

AuthenticationStatusImpl

public class AuthenticationStatusImpl extends Object implements AuthenticationStatus
This class implements an AuthenticationStatus object.
author
Harish Prabandham

Fields Summary
private String
realmName
private String
authMethod
private String
principalName
private int
status
Constructors Summary
public AuthenticationStatusImpl(String principalName, String authMethod, String realm, int status)
This constructs a new AuthenticationStatus object.

param
The name of the principal
param
The name of the realm that authenticated the principal
param
The method used for authenticating the principal
param
The status of the authentication

	this.principalName = principalName;
	this.authMethod = authMethod;
	this.status = status;
	this.realmName = realm;
    
Methods Summary
public java.lang.StringgetAuthMethod()
This method returns the "method" used to perform authentication

return
A java.lang.String representation of the method used. In passphrase based authentication it returns the string "password".

	return authMethod;
    
public byte[]getAuthSpecificData()
This method returns a byte array of zero length, since there's no auth specific data needed for passphrase based authentication.

return
A byte array of zero length.

	return new byte[0];
    
public byte[]getContinuationData()
This method returns a byte array of zero length, since there's no continuation data needed for passphrase based authentication.

return
A byte array of zero length.

	return new byte[0];
    
public java.lang.StringgetPrincipalName()
This method returns the string representation of the principal that was authenticated.

return
A java.lang.String representation of the Principal.

	return principalName;
    
public java.lang.StringgetRealmName()
This method returns the name of realm where the authentication was performed.

return
A java.lang.String representation of the realm.

	return realmName;
    
public intgetStatus()
This method returns the status of the authentication

return
An integer value indicating the status of the authentication

	return status;