com.sun.sgs.impl.kernel
Class IdentityCoordinatorImpl

java.lang.Object
  extended by com.sun.sgs.impl.kernel.IdentityCoordinatorImpl
All Implemented Interfaces:
IdentityCoordinator

 class IdentityCoordinatorImpl
extends Object
implements IdentityCoordinator

This package-private implementation of IdentityCoordinator is the implementation used by the system when configuring an application. It manages an ordered collection of IdentityAuthenticators. The ordering is used to determine precidence when more than one authenticator can consume the same credentials.

This implementation is kept private to this package so that the context can be assigned, safely, after the coordinator is created. An instance of the coordinator is needed before the context can be created.


Constructor Summary
IdentityCoordinatorImpl(List<IdentityAuthenticator> authenticators)
          Creates an instance of IdentityCoordinatorImpl that has the given IdentityAuthenticators available to authenticate identities.
 
Method Summary
 Identity authenticateIdentity(IdentityCredentials credentials)
          Authenticates the given credentials.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdentityCoordinatorImpl

public IdentityCoordinatorImpl(List<IdentityAuthenticator> authenticators)
Creates an instance of IdentityCoordinatorImpl that has the given IdentityAuthenticators available to authenticate identities. The order of the authenticators determines precidence when more than one authenticator supports a given credentials type.

Parameters:
authenticators - the available IdentityAuthenticators
Method Detail

authenticateIdentity

public Identity authenticateIdentity(IdentityCredentials credentials)
                              throws LoginException
Authenticates the given credentials.

Specified by:
authenticateIdentity in interface IdentityCoordinator
Parameters:
credentials - the IdentityCredentials to authenticate
Returns:
an authenticated Identity that has not been notified of login
Throws:
CredentialException - if the authenticator for the credentials is unknown
LoginException - if authentication fails

RedDwarf, Version 0.10.1
2010-03-14 10:56:12

Copyright © 2010 The RedDwarf Authors. All rights reserved
Copyright © 2007-2010 Sun Microsystems, Inc. All rights reserved