TokenType
- type of token which is being evaluated by the underlying trust enginepublic abstract class BaseTrustEngineSecurityHandler<TokenType>
extends org.opensaml.messaging.handler.AbstractMessageHandler
Constructor and Description |
---|
BaseTrustEngineSecurityHandler() |
Modifier and Type | Method and Description |
---|---|
protected abstract CriteriaSet |
buildCriteriaSet(String entityID,
org.opensaml.messaging.context.MessageContext messageContext)
Subclasses are required to implement this method to build a criteria set for the trust engine
according to trust engine and application-specific needs.
|
protected boolean |
doPreInvoke(org.opensaml.messaging.context.MessageContext messageContext) |
protected boolean |
evaluate(TokenType token,
CriteriaSet criteriaSet)
Evaluate the token against the specified criteria using the configured trust engine.
|
protected boolean |
evaluate(TokenType token,
String entityID,
org.opensaml.messaging.context.MessageContext messageContext)
Evaluate the token using the configured trust engine against criteria built using
the specified candidate issuer entity ID and message context information.
|
protected TrustEngine<? super TokenType> |
getTrustEngine()
Gets the trust engine used to validate the untrusted token.
|
protected abstract TrustEngine<? super TokenType> |
resolveTrustEngine(org.opensaml.messaging.context.MessageContext messageContext)
Resolve a TrustEngine instance of the appropriate type from the message context.
|
doInvoke, doPostInvoke, doPostInvoke, getLogPrefix, invoke
destroy, doDestroy, doInitialize, initialize, isDestroyed, isInitialized
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initialize, isInitialized
@Nullable protected TrustEngine<? super TokenType> getTrustEngine()
protected boolean doPreInvoke(@Nonnull org.opensaml.messaging.context.MessageContext messageContext) throws org.opensaml.messaging.handler.MessageHandlerException
doPreInvoke
in class org.opensaml.messaging.handler.AbstractMessageHandler
org.opensaml.messaging.handler.MessageHandlerException
@Nullable protected abstract TrustEngine<? super TokenType> resolveTrustEngine(@Nonnull org.opensaml.messaging.context.MessageContext messageContext)
messageContext
- the message context which is being evaluated@Nullable protected abstract CriteriaSet buildCriteriaSet(@Nullable String entityID, @Nonnull org.opensaml.messaging.context.MessageContext messageContext) throws org.opensaml.messaging.handler.MessageHandlerException
entityID
- the candidate issuer entity ID which is being evaluatedmessageContext
- the message context which is being evaluatedorg.opensaml.messaging.handler.MessageHandlerException
- thrown if criteria set can not be constructedprotected boolean evaluate(@Nonnull TokenType token, @Nullable String entityID, @Nonnull org.opensaml.messaging.context.MessageContext messageContext) throws org.opensaml.messaging.handler.MessageHandlerException
token
- the token to be evaluatedentityID
- the candidate issuer entity ID which is being evaluatedmessageContext
- the message context which is being evaluatedorg.opensaml.messaging.handler.MessageHandlerException
- thrown if there is a fatal error during trust engine evaluationprotected boolean evaluate(@Nonnull TokenType token, @Nullable CriteriaSet criteriaSet) throws org.opensaml.messaging.handler.MessageHandlerException
token
- the token to be evaluatedcriteriaSet
- the set of criteria against which to evaluate the tokenorg.opensaml.messaging.handler.MessageHandlerException
- thrown if there is a fatal error during trust engine evaluationCopyright © 2016 JBoss by Red Hat. All rights reserved.