org.opensaml.ws.security.provider
Class BaseTrustEngineRuleFactory<TokenType,RequestType extends javax.servlet.ServletRequest>

java.lang.Object
  extended by org.opensaml.ws.security.provider.BaseTrustEngineRuleFactory<TokenType,RequestType>
Type Parameters:
RequestType - type of request being processed
TokenType - type of token which is being evaluated by the underlying trust engine
All Implemented Interfaces:
SecurityPolicyRuleFactory<RequestType>
Direct Known Subclasses:
BaseSAMLSignatureSecurityPolicyRuleFactory, ClientCertAuthRuleFactory

public abstract class BaseTrustEngineRuleFactory<TokenType,RequestType extends javax.servlet.ServletRequest>
extends java.lang.Object
implements SecurityPolicyRuleFactory<RequestType>

Base abstract factory for rules which use a trust engine to evaluate a token extracted from the request or message.


Constructor Summary
BaseTrustEngineRuleFactory()
           
 
Method Summary
abstract  SecurityPolicyRule<RequestType> createRuleInstance()
          Creates an instance of a policy rule.
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseTrustEngineRuleFactory

public BaseTrustEngineRuleFactory()
Method Detail

getTrustEngine

public TrustEngine<TokenType> getTrustEngine()
Gets the engine used to validate the untrusted token.

Returns:
engine used to validate the untrusted token

setTrustEngine

public void setTrustEngine(TrustEngine<TokenType> engine)
Sets the engine used to validate the untrusted token.

Parameters:
engine - engine used to validate the untrusted token

createRuleInstance

public abstract SecurityPolicyRule<RequestType> createRuleInstance()
Creates an instance of a policy rule.

Specified by:
createRuleInstance in interface SecurityPolicyRuleFactory<RequestType extends javax.servlet.ServletRequest>
Returns:
an instance of a policy rule