org.opensaml.common.binding.security
Class SAMLSecurityPolicyFactory

java.lang.Object
  extended by org.opensaml.ws.security.provider.BaseSecurityPolicyFactory<javax.servlet.ServletRequest>
      extended by org.opensaml.common.binding.security.SAMLSecurityPolicyFactory
All Implemented Interfaces:
SecurityPolicyFactory<javax.servlet.ServletRequest>

public class SAMLSecurityPolicyFactory
extends BaseSecurityPolicyFactory<javax.servlet.ServletRequest>

Factory that produces SAMLSecurityPolicy instances.


Constructor Summary
SAMLSecurityPolicyFactory()
           
 
Method Summary
 SecurityPolicy<javax.servlet.ServletRequest> createPolicyInstance()
          Creates an instance of a policy.
 java.lang.String getIssuerProtocol()
          Gets the message protocol used by the issuer.
 javax.xml.namespace.QName getIssuerRole()
          Gets the SAML role the issuer is meant to be operating in.
 boolean getRequiredAuthenticatedIssuer()
          Gets whether the issuer of the message must be authenticated in order for the policy to pass.
 void setIssuerProtocol(java.lang.String protocol)
          Sets the message protocol used by the issuer.
 void setIssuerRole(javax.xml.namespace.QName role)
          Sets the SAML role the issuer is meant to be operating in.
 void setRequiredAuthenticatedIssuer(boolean required)
          Sets whether the issuer of the message must be authenticated in order for the policy to pass.
 
Methods inherited from class org.opensaml.ws.security.provider.BaseSecurityPolicyFactory
getPolicyRuleFactories, getPolicyRuleInstances, setPolicyRuleFactories
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SAMLSecurityPolicyFactory

public SAMLSecurityPolicyFactory()
Method Detail

getIssuerProtocol

public java.lang.String getIssuerProtocol()
Gets the message protocol used by the issuer.

Returns:
message protocol used by the issuer

setIssuerProtocol

public void setIssuerProtocol(java.lang.String protocol)
Sets the message protocol used by the issuer.

Parameters:
protocol - message protocol used by the issuer

getIssuerRole

public javax.xml.namespace.QName getIssuerRole()
Gets the SAML role the issuer is meant to be operating in.

Returns:
SAML role the issuer is meant to be operating in

setIssuerRole

public void setIssuerRole(javax.xml.namespace.QName role)
Sets the SAML role the issuer is meant to be operating in.

Parameters:
role - SAML role the issuer is meant to be operating in

getRequiredAuthenticatedIssuer

public boolean getRequiredAuthenticatedIssuer()
Gets whether the issuer of the message must be authenticated in order for the policy to pass.

Returns:
whether the issuer of the message must be authenticated in order for the policy to pass

setRequiredAuthenticatedIssuer

public void setRequiredAuthenticatedIssuer(boolean required)
Sets whether the issuer of the message must be authenticated in order for the policy to pass.

Parameters:
required - whether the issuer of the message must be authenticated in order for the policy to pass

createPolicyInstance

public SecurityPolicy<javax.servlet.ServletRequest> createPolicyInstance()
Creates an instance of a policy.

Returns:
an instance of a policy