|
![]() |
|||||||||
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.authentication.directory.AuthenticationServiceImpl
public class AuthenticationServiceImpl
This class provides a directory implementation for the NiM Authentication Service. That is, entity credentials are authenticated against a directory server. This implementation uses the JNDI implementation of Nitido Eximius Directory library. Currently, it does not supports any connection pool.
Field Summary | |
---|---|
static java.lang.String |
AT_DN
Attribute name for the entity's distinguish name. |
static java.lang.String |
CONF_KEY_DM_DN
Configuration key for the DN of the Directory Manager. |
static java.lang.String |
CONF_KEY_DM_PWD
Configuration key for the Directory Manager's password. |
static java.lang.String |
CONF_KEY_HOST
Configuration key for the directory host name. |
static java.lang.String |
CONF_KEY_PORT
Configuration key for the directory port name. |
static java.lang.String |
CONF_KEY_PREFIX_CREDMAP
Configuration key prefix for the credential map conversion settings. |
static java.lang.String |
CONF_KEY_PWDNAME
Configuration key for the authentication password. |
Fields inherited from interface com.nitido.nim.CredentialConstants |
---|
CRED_ADMIN, CRED_CONTAINER, CRED_HELPDESK, CRED_SYSTEM, CRED_USER, KEY_PASSWORD |
Constructor Summary | |
---|---|
AuthenticationServiceImpl(NiMKernelServiceVisa visa)
This class constructor is used by NiMKernel to instantiate a new directory AuthenticationService. |
Method Summary | |
---|---|
protected Credential |
authenticateImpl(Credential cred)
This method is used to authenticate the given credential against a directory server. |
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 called by the NiMKernel to initialize the authentication 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 |
Field Detail |
---|
public static final java.lang.String CONF_KEY_HOST
public static final java.lang.String CONF_KEY_PORT
public static final java.lang.String CONF_KEY_PWDNAME
public static final java.lang.String CONF_KEY_DM_DN
public static final java.lang.String CONF_KEY_DM_PWD
public static final java.lang.String CONF_KEY_PREFIX_CREDMAP
public static final java.lang.String AT_DN
Constructor Detail |
---|
public AuthenticationServiceImpl(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 void init(NiMKernel kernel, ConfigurationService confService) throws InitializationFailedException, NiMException
init
in class AuthenticationService
kernel
- Reference to the Kernel that instantiated and initialized
this service.confService
- Reference to the ConfigurationService.
The ConfigurationService must provide all of the following
settings in order to initialize this service successfully.
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.protected Credential authenticateImpl(Credential cred) throws AuthenticationFailedException, IllegalCredentialException, NiMException
authenticateImpl
in class AuthenticationService
cred
- The credential to authenticate against the directory
IllegalCredentialException
- If the credential is invalid or the configuration settings do
not support the given entity type.
AuthenticationFailedException
- If unable to authenticate the given credential because of
incorrect user id/password combination.
NiMException
- If unable to establish connection to the directory server.public void changeAuthenticationCredential(Credential oldCred, Credential newCred) throws AuthenticationFailedException, IllegalCredentialException, NiMException
AuthenticationService
changeAuthenticationCredential
in class AuthenticationService
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.