FileDocCategorySizeDatePackage
AuthenticationHandler.javaAPI DocGlassfish v2 API3041Fri May 04 22:35:26 BST 2007com.sun.enterprise.security.auth.realm

AuthenticationHandler

public interface AuthenticationHandler
This interface is used by the Authentication Service to have the Principal authenticated by the realm. A realm provides an implementation of this interface.
author
Harish Prabandham
author
Harpreet Singh

Fields Summary
Constructors Summary
Methods Summary
public booleandoAuthentication(java.lang.String principalName, byte[] authData)
This method authenticates the given principal using the specified authentication data and the Principal's Credentials. The result of the authentication is returned back.

param
The principal (user) being authenticated.
param
The data needed for authentication.
return
boolean denoting true for success and false for failure authentication.

public RealmgetRealm()
Returns the Realm that this Authentication Handler is authenticating in.

return
The Realm object in which this handler is authenticating in.