org.opensaml.common.binding.security
Class SAMLSecurityPolicyContext

java.lang.Object
  extended by org.opensaml.ws.security.SecurityPolicyContext
      extended by org.opensaml.common.binding.security.SAMLSecurityPolicyContext

public class SAMLSecurityPolicyContext
extends SecurityPolicyContext

SAML-specific class which stores state used, and produced, by security policy rules.


Constructor Summary
SAMLSecurityPolicyContext()
           
 
Method Summary
 org.joda.time.DateTime getIssueInstant()
          Get the date and time of a message's issuance.
 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.
 java.lang.String getMessageID()
          Gets the ID of the SAML request/response.
 MetadataProvider getMetadataProvider()
          Gets the metadata provider used to lookup issuer information.
 void setIssueInstant(org.joda.time.DateTime newIssueInstant)
          Set the date and time of a message's issuance.
 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 setMessageID(java.lang.String id)
          Sets the ID of the SAML request/response.
 void setMetadataProvider(MetadataProvider provider)
          Sets the metadata provider used to lookup issuer information.
 
Methods inherited from class org.opensaml.ws.security.SecurityPolicyContext
getIssuer, isIssuerAuthenticated, setIssuer, setIssuerAuthenticated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SAMLSecurityPolicyContext

public SAMLSecurityPolicyContext()
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

getMetadataProvider

public MetadataProvider getMetadataProvider()
Gets the metadata provider used to lookup issuer information.

Returns:
metadata provider used to lookup issuer information

setMetadataProvider

public void setMetadataProvider(MetadataProvider provider)
Sets the metadata provider used to lookup issuer information.

Parameters:
provider - metadata provider used to lookup issuer information

getIssueInstant

public org.joda.time.DateTime getIssueInstant()
Get the date and time of a message's issuance.

Returns:
the date/time a message was issued

setIssueInstant

public void setIssueInstant(org.joda.time.DateTime newIssueInstant)
Set the date and time of a message's issuance.

Parameters:
newIssueInstant - the date and time of the message's issuance

getMessageID

public java.lang.String getMessageID()
Gets the ID of the SAML request/response.

Returns:
ID of the SAML request/response

setMessageID

public void setMessageID(java.lang.String id)
Sets the ID of the SAML request/response.

Parameters:
id - ID of the SAML request/response