|
![]() |
|||||||||
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
com.nitido.nimx.services.simbackend.AuthenticationServiceImpl
public class AuthenticationServiceImpl
This class provides a simulator for the AuthenticationService.
This implementation will authenticate any credential unless the credential has a user ID that starts with "badUser", contains only white spaces or is a null object.
This implementation will support all entity types specified in the credential unless the type is "badGroup". If "badGroup" is encountered, it will throw an IllegalCredentialException.
Field Summary |
---|
Constructor Summary | |
---|---|
AuthenticationServiceImpl(NiMKernelServiceVisa visa)
|
Method Summary | |
---|---|
Credential |
authenticateImpl(Credential credential)
This method is used to authenticate the given credential against the back-end authentication service. |
void |
changeAuthenticationCredential(Credential oldCred,
Credential newCred)
This method is used to change the identifying credentials on an entity. |
protected void |
init(NiMKernel kernel,
ConfigurationService confService)
This method is used to initialize the service. |
Methods inherited from class com.nitido.nim.AuthenticationService |
---|
authenticate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AuthenticationServiceImpl(NiMKernelServiceVisa visa)
Method Detail |
---|
protected void init(NiMKernel kernel, ConfigurationService confService) throws InitializationFailedException, NiMException
init
in class AuthenticationService
kernel
- Reference to the kernel instance that instantiated this
service.confService
- Reference to the ConfigurationService.
InitializationFailedException
- If unable to initialize this service. This exception is
never thrown by this service implementation.
NiMException
- If unable to connect with the back-end server. This
exception is never throws by this service implementation.public Credential authenticateImpl(Credential credential) throws AuthenticationFailedException, IllegalCredentialException, NiMException
authenticateImpl
in class AuthenticationService
credential
- The credential to authenticate against the back-end service.
IllegalCredentialException
- If the credential is a null object.
AuthenticationFailedException
- If unable to authenticate the given credential. This
exception is thrown if the uid of the credential starts with
"badUser" or if it is null.
NiMException
- If the kernel service fails to connect to back-end
authentication system.public void changeAuthenticationCredential(Credential oldCred, Credential newCred) throws AuthenticationFailedException, IllegalCredentialException, NiMException
changeAuthenticationCredential
in class AuthenticationService
oldCred
- The original credentialnewCred
- The new credential
IllegalCredentialException
- This service implementation throws this exception if the given
credentials are null or if the uid of the new credential is NOT
the same as the uid of the old credential.
AuthenticationFailedException
- If unable to authenticate the given credential. This
exception is thrown if the uid of the credential starts with
"badUser" or if it is null.
NiMException
- If the kernel service fails to connect to back-end
authentication system. This exception is never thrown by
this service implementation.
|
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.