WSRPIdentityAsserterProviderImpl Class
- public final class WSRPIdentityAsserterProviderImpl
extends Object
implements AuthenticationProvider
, IdentityAsserter
Asserts user identity for WSRP calls.
-
Hierarchy
-
Object
WSRPIdentityAsserterProviderImpl
-
All Implemented Interfaces
-
AuthenticationProvider
, IdentityAsserter
, SecurityProvider
Methods from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WSRPIdentityAsserterProviderImpl
public WSRPIdentityAsserterProviderImpl()
assertIdentity(String, Object) Method
public CallbackHandler
assertIdentity(String
type,
Object
token)
throws IdentityAssertionException
Asserts identity given a token that identifies the user.
Parameters
-
type
- a string containing the token type
-
token
- an object containing the token that identifies the user.
Returns
- a CallbackHandler that stores the username from the token.
Exceptions
-
IdentityAssertionException
- if another token type is passed
in or the token doesn't have the correct form.
getAssertionModuleConfiguration() Method
public AppConfigurationEntry
getAssertionModuleConfiguration()
Return how to call the login module to complete identity
assertion (where the identity asserter finds the user name
and the authenticator puts the user and its groups into the
subject).
Returns
- A null AppConfigurationEntry since the simple sample identity
asserter is not an authenticator (thus doesn't have a login module).
getDescription() Method
public String
getDescription()
Returns the description
Returns
- description
getIdentityAsserter() Method
public IdentityAsserter
getIdentityAsserter()
Returns the identity asseter.
Returns
- identity asserter
getLoginModuleConfiguration() Method
public AppConfigurationEntry
getLoginModuleConfiguration()
Return how to call the login module to perform authentication.
Returns
- A null AppConfigurationEntry since the simple sample identity
asserter is not an authenticator (thus doesn't have a login module).
getPrincipalValidator() Method
public PrincipalValidator
getPrincipalValidator()
Return an object that can validate principals (eg. users
and groups) that this provider puts into the subject.
Returns
- A null PrincipalValidator since the simple sample identity asserter
is not an authenticator (thus doesn't put principals into the subject).
initialize(ProviderMBean, SecurityServices) Method
public void initialize(ProviderMBean
mbean,
SecurityServices
services)
Initializes this identity asserter
Parameters
-
mbean
- holds the simple identity asserter's configuration data.
-
services
- The SecurityServices gives access to the auditor
so that the provider can to post audit events.
shutdown() Method
public void shutdown()
Shuts down this identity asserter.