Class AbstractIdentityTrustModule
- java.lang.Object
-
- org.jboss.security.identitytrust.modules.AbstractIdentityTrustModule
-
- All Implemented Interfaces:
IdentityTrustModule
- Direct Known Subclasses:
AlwaysDenyTrustModule,AlwaysNotApplicableTrustModule,AlwaysPermitTrustModule,JavaEETrustModule
public abstract class AbstractIdentityTrustModule extends Object implements IdentityTrustModule
Abstract IdentityTrustModule that pulls in common stuff- Since:
- Aug 2, 2007
- Version:
- $Revision$
- Author:
- Anil.Saldhana@redhat.com
-
-
Field Summary
Fields Modifier and Type Field Description protected CallbackHandlercallbackHandlerprotected Map<String,Object>optionsprotected SecurityContextsecurityContextprotected Map<String,Object>sharedState
-
Constructor Summary
Constructors Constructor Description AbstractIdentityTrustModule()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanabort()Abort the Trust Processbooleancommit()The IdentityTrust Process has succeeded.voidinitialize(SecurityContext sc, CallbackHandler handler, Map<String,Object> sharedState, Map<String,Object> options)Initialize the module with the SecurityContext on which trust decisions will be madeabstract IdentityTrustManager.TrustDecisionisTrusted()Make the trust decision
-
-
-
Field Detail
-
securityContext
protected SecurityContext securityContext
-
callbackHandler
protected CallbackHandler callbackHandler
-
-
Method Detail
-
abort
public boolean abort() throws IdentityTrustExceptionDescription copied from interface:IdentityTrustModuleAbort the Trust Process- Specified by:
abortin interfaceIdentityTrustModule- Returns:
- true -abort process succeeded
- Throws:
IdentityTrustException- See Also:
IdentityTrustModule.abort()
-
commit
public boolean commit() throws IdentityTrustExceptionDescription copied from interface:IdentityTrustModuleThe IdentityTrust Process has succeeded. The module can commit its decision (maybe to a Database)- Specified by:
commitin interfaceIdentityTrustModule- Returns:
- - commit process succeeded
- Throws:
IdentityTrustException- See Also:
IdentityTrustModule.commit()
-
initialize
public void initialize(SecurityContext sc, CallbackHandler handler, Map<String,Object> sharedState, Map<String,Object> options) throws IdentityTrustException
Description copied from interface:IdentityTrustModuleInitialize the module with the SecurityContext on which trust decisions will be made- Specified by:
initializein interfaceIdentityTrustModulehandler- a CallbackHandler if neededsharedState- a Shared State passed to all modulesoptions- configured options- Throws:
IdentityTrustException- See Also:
IdentityTrustModule.initialize(SecurityContext, CallbackHandler, Map, Map)
-
isTrusted
public abstract IdentityTrustManager.TrustDecision isTrusted() throws IdentityTrustException
Description copied from interface:IdentityTrustModuleMake the trust decision- Specified by:
isTrustedin interfaceIdentityTrustModule- Returns:
IdentityTrustManager.TrustDecision.Permit,IdentityTrustManager.TrustDecision.Deny,IdentityTrustManager.TrustDecision.NotApplicable- Throws:
IdentityTrustException- See Also:
IdentityTrustModule.isTrusted()
-
-