|
||||||||||
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.
Constructor Summary | |
---|---|
BaseTrustEngineRule(org.opensaml.xml.security.trust.TrustEngine<TokenType> engine)
Constructor. |
Method Summary | |
---|---|
protected abstract org.opensaml.xml.security.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,
org.opensaml.xml.security.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 org.opensaml.xml.security.trust.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 |
Constructor Detail |
---|
public BaseTrustEngineRule(org.opensaml.xml.security.trust.TrustEngine<TokenType> engine)
engine
- Trust engine used to verify the particular token typeMethod Detail |
---|
protected org.opensaml.xml.security.trust.TrustEngine<TokenType> getTrustEngine()
protected abstract org.opensaml.xml.security.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, org.opensaml.xml.security.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 |