|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.nitido.nim.NiMKernelService
com.nitido.nim.AuthenticationService
public abstract class AuthenticationService
The AuthenticationService is the NiMKernel component responsible for the authentication of entity credentials.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
AuthenticationService(NiMKernelServiceVisa visa)
This class constructor is used by the NiMKernel to instantiate a new AuthenticationService. |
|
| Method Summary | |
|---|---|
Credential |
authenticate(Credential cred)
This method forwards the call to authenticateImpl() method and then sets the authenticated flag of the credential to true. |
protected abstract Credential |
authenticateImpl(Credential cred)
This method is used to authenticate the given credential against the back-end authentication service. |
abstract void |
changeAuthenticationCredential(Credential oldCred,
Credential newCred)
This method is used to change the identifying credentials on an entity. |
protected abstract void |
init(NiMKernel kernel,
ConfigurationService confService)
This method is used to initialize the kernel service. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AuthenticationService(NiMKernelServiceVisa visa)
visa - Reference to the NiMKernelServiceVisa object required to
instantiate the service. This parameter is required to
ensure that only the NiMkernel can instantiate a reference
to this service.| Method Detail |
|---|
protected abstract void init(NiMKernel kernel,
ConfigurationService confService)
throws InitializationFailedException,
NiMException
NiMKernelService
init in class NiMKernelServicekernel - Reference to the NiMKernel object that instantiated the
service.confService - A reference to the configuration service. All the service
implementations (except ConfigurationService)
should retrieve the setting information from it.
InitializationFailedException - If unable to initialize the kernel service.
NiMException - If service initialization can not be done due to failure in
establish a connection to the back-end service. Not all
service implementation will throw this exception.
public final Credential authenticate(Credential cred)
throws AuthenticationFailedException,
IllegalCredentialException,
NiMException
cred - The credential to authenticate against the back-end service.
AuthenticationFailedException - If unable to authenticate the given credential
IllegalCredentialException - If the credential is invalid or belongs to a type that is
not supported by the AuthenticationService implementation.
NiMException - If the kernel service fails to connect to back-end
authentication system.
protected abstract Credential authenticateImpl(Credential cred)
throws AuthenticationFailedException,
IllegalCredentialException,
NiMException
cred - The credential to authenticate against the back-end service.
AuthenticationFailedException - If unable to authenticate the given credential
IllegalCredentialException - If the credential is invalid or belongs to a type that is
not supported by this AuthenticationService.
NiMException - If the kernel service fails to connect to back-end
authentication system.
public abstract void changeAuthenticationCredential(Credential oldCred,
Credential newCred)
throws AuthenticationFailedException,
IllegalCredentialException,
NiMException
oldCred - The original credentialnewCred - The new credential
AuthenticationFailedException - If unable to authenticate the given credential
IllegalCredentialException - If the credential is invalid or belongs to a type that is
not supported by this AuthenticationService.
NiMException - If the kernel service fails to connect to back-end
authentication system.
|
Nitido NiM 2.5 Java API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright © 1999-2009 Nitido Inc. Proprietary and Confidential. All Rights Reserved.