org.opensaml.ws.security
Class SecurityPolicyContext

java.lang.Object
  extended by org.opensaml.ws.security.SecurityPolicyContext
Direct Known Subclasses:
SAMLSecurityPolicyContext

public class SecurityPolicyContext
extends java.lang.Object

Stores state that is maintained by SecurityPolicy instances, and which is used in the evaluation of SecurityPolicyRule's.


Constructor Summary
SecurityPolicyContext()
           
 
Method Summary
 java.lang.String getIssuer()
          Get the issuer as determined by the security policy evaluation.
 java.lang.Boolean isIssuerAuthenticated()
          Gets whether the message issuer was authenticated.
 void setIssuer(java.lang.String newIssuer)
          Set the issuer as determined by the security policy evaluation.
 void setIssuerAuthenticated(boolean authenticated)
          Sets whether the message issuer was authenticated.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityPolicyContext

public SecurityPolicyContext()
Method Detail

getIssuer

public java.lang.String getIssuer()
Get the issuer as determined by the security policy evaluation.

Returns:
the issuer of the message

setIssuer

public void setIssuer(java.lang.String newIssuer)
Set the issuer as determined by the security policy evaluation.

Parameters:
newIssuer - the new issuer value to store

isIssuerAuthenticated

public java.lang.Boolean isIssuerAuthenticated()
Gets whether the message issuer was authenticated.

Returns:
Boolean.TRUE if the issuer was authenticated, Boolean.FALSE if the issuer failed authentication, or null if no authentication was attempted

setIssuerAuthenticated

public void setIssuerAuthenticated(boolean authenticated)
Sets whether the message issuer was authenticated.

Parameters:
authenticated - true if the issuer was authenticated, false if the issuer failed authentication