TokenType - type of token which is being evaluated by the underlying trust engineMessageType - type of message contained in the message context being evaluatedpublic abstract class BaseTrustEngineSecurityHandler<TokenType,MessageType> extends AbstractMessageHandler<MessageType>
| Modifier and Type | Field and Description |
|---|---|
private Logger |
log
Logger.
|
private TrustEngine<TokenType> |
trustEngine
Trust engine used to verify the particular token type.
|
| Constructor and Description |
|---|
BaseTrustEngineSecurityHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract net.shibboleth.utilities.java.support.resolver.CriteriaSet |
buildCriteriaSet(String entityID,
MessageContext<MessageType> 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 void |
doInitialize() |
protected boolean |
doPreInvoke(MessageContext<MessageType> messageContext) |
protected boolean |
evaluate(TokenType token,
net.shibboleth.utilities.java.support.resolver.CriteriaSet criteriaSet)
Evaluate the token against the specified criteria using the configured trust engine.
|
protected boolean |
evaluate(TokenType token,
String entityID,
MessageContext<MessageType> 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<TokenType> |
getTrustEngine()
Gets the trust engine used to validate the untrusted token.
|
protected abstract TrustEngine<TokenType> |
resolveTrustEngine(MessageContext<MessageType> messageContext)
Resolve a TrustEngine instance of the appropriate type from the message context.
|
doInvoke, doPostInvoke, doPostInvoke, getLogPrefix, invokedestroy, doDestroy, initialize, isDestroyed, isInitializedprivate final Logger log
private TrustEngine<TokenType> trustEngine
protected TrustEngine<TokenType> getTrustEngine()
protected void doInitialize()
throws net.shibboleth.utilities.java.support.component.ComponentInitializationException
doInitialize in class net.shibboleth.utilities.java.support.component.AbstractInitializableComponentnet.shibboleth.utilities.java.support.component.ComponentInitializationExceptionprotected boolean doPreInvoke(MessageContext<MessageType> messageContext) throws MessageHandlerException
doPreInvoke in class AbstractMessageHandler<MessageType>MessageHandlerException@Nullable protected abstract TrustEngine<TokenType> resolveTrustEngine(MessageContext<MessageType> messageContext)
messageContext - the message context which is being evaluated@Nonnull protected abstract net.shibboleth.utilities.java.support.resolver.CriteriaSet buildCriteriaSet(String entityID, MessageContext<MessageType> messageContext) throws MessageHandlerException
entityID - the candidate issuer entity ID which is being evaluatedmessageContext - the message context which is being evaluatedMessageHandlerException - thrown if criteria set can not be constructedprotected boolean evaluate(TokenType token, String entityID, MessageContext<MessageType> messageContext) throws MessageHandlerException
token - the token to be evaluatedentityID - the candidate issuer entity ID which is being evaluatedmessageContext - the message context which is being evaluatedMessageHandlerException - thrown if there is a fatal error during trust engine evaluationprotected boolean evaluate(TokenType token, net.shibboleth.utilities.java.support.resolver.CriteriaSet criteriaSet) throws MessageHandlerException
token - the token to be evaluatedcriteriaSet - the set of criteria against which to evaluate the tokenMessageHandlerException - thrown if there is a fatal error during trust engine evaluationCopyright © 1999–2014. All rights reserved.