com.sun.sgs.auth
Interface IdentityCoordinator

All Known Implementing Classes:
IdentityCoordinatorImpl

public interface IdentityCoordinator

A system component that is used to authenticate identities. This interface is provided to Services and other system components, and is used to authenticate identities within a specific context. Implementations of this interface use IdentityAuthenticators to actually perform authentication.

Note that the IdentityCoordinator provided to Services via the ComponentRegistry field of their constructor will only be able to authenticate identities within that Service's context. It is safe, however, to use that IdentityCoordinator in any context and outside of a running transaction. Services must not, however, use their IdentityCoordinator until ready is called, because before this point the underlying context is not valid and available to the IdentityCoordinator.


Method Summary
 Identity authenticateIdentity(IdentityCredentials credentials)
          Authenticates the given credentials.
 

Method Detail

authenticateIdentity

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

Parameters:
credentials - the IdentityCredentials to authenticate
Returns:
an authenticated Identity that has not been notified of login
Throws:
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