|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opensaml.ws.security.provider.BaseTrustEngineRule<TokenType>
TokenType
- type of token which is being evaluated by the underlying trust enginepublic abstract class BaseTrustEngineRule<TokenType>
Base rule which uses a trust engine to evaluate a token extracted from the request or message.
Field Summary | |
---|---|
private org.slf4j.Logger |
log
Logger. |
private TrustEngine<TokenType> |
trustEngine
Trust engine used to verify the particular token type. |
Constructor Summary | |
---|---|
BaseTrustEngineRule(TrustEngine<TokenType> engine)
Constructor. |
Method Summary | |
---|---|
protected abstract CriteriaSet |
buildCriteriaSet(String entityID,
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 |
evaluate(TokenType token,
CriteriaSet criteriaSet)
Evaluate the token against the specified criteria using the configured trust engine. |
protected boolean |
evaluate(TokenType token,
String entityID,
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<TokenType> |
getTrustEngine()
Gets the engine used to validate the untrusted token. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.opensaml.ws.security.SecurityPolicyRule |
---|
evaluate |
Field Detail |
---|
private final org.slf4j.Logger log
private TrustEngine<TokenType> trustEngine
Constructor Detail |
---|
public BaseTrustEngineRule(TrustEngine<TokenType> engine)
engine
- Trust engine used to verify the particular token typeMethod Detail |
---|
protected TrustEngine<TokenType> getTrustEngine()
protected abstract CriteriaSet buildCriteriaSet(String entityID, MessageContext messageContext) throws SecurityPolicyException
entityID
- the candidate issuer entity ID which is being evaluatedmessageContext
- the message context which is being evaluated
SecurityPolicyException
- thrown if criteria set can not be constructedprotected boolean evaluate(TokenType token, String entityID, MessageContext messageContext) throws SecurityPolicyException
token
- the token to be evaluatedentityID
- the candidate issuer entity ID which is being evaluatedmessageContext
- the message context which is being evaluated
SecurityPolicyException
- thrown if there is a fatal error during trust engine evaluationprotected boolean evaluate(TokenType token, CriteriaSet criteriaSet) throws SecurityPolicyException
token
- the token to be evaluatedcriteriaSet
- the set of criteria against which to evaluate the token
SecurityPolicyException
- thrown if there is a fatal error during trust engine evaluation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |