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 |
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.
|
TrustEngine<TokenType> |
getTrustEngine()
Gets the engine used to validate the untrusted token.
|
void |
setTrustEngine(TrustEngine<TokenType> engine)
Sets the engine used to validate the untrusted token.
|
doInvoke, doPostInvoke, doPostInvoke, doPreInvoke, getLogPrefix, invokedestroy, doDestroy, initialize, isDestroyed, isInitializedprivate final Logger log
private TrustEngine<TokenType> trustEngine
public TrustEngine<TokenType> getTrustEngine()
public void setTrustEngine(TrustEngine<TokenType> engine)
engine - engine used to validate the untrusted tokenprotected 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 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.