com.sun.identity.liberty.ws.security
Class SessionContextStatement

java.lang.Object
  extended bycom.sun.identity.saml.assertion.Statement
      extended bycom.sun.identity.saml.assertion.SubjectStatement
          extended bycom.sun.identity.liberty.ws.security.SessionContextStatement

public class SessionContextStatement
extends SubjectStatement

The SessionContextStatement element conveys session status of an entity to another system entity within the body of an <saml:assertion> element.


Field Summary
static int SESSIONCONTEXT_STATEMENT
          The Statement is an Session Context Statement.
 
Fields inherited from class com.sun.identity.saml.assertion.Statement
ATTRIBUTE_STATEMENT, AUTHENTICATION_STATEMENT, AUTHORIZATION_DECISION_STATEMENT, NOT_SUPPORTED
 
Constructor Summary
SessionContextStatement(org.w3c.dom.Element element)
          Constructs a SessionContextStatement object from a DOM element.
SessionContextStatement(SessionContext sessionContext, ProxySubject proxySubject, Subject subject)
          Constructs a SessionContextStatement object from a SessionContext object, a proxySubject and a Subject object.
SessionContextStatement(SessionContext sessionContext, Subject subject)
          Constructs a SessionContextStatement object from a SessionContext object and a Subject object.
 
Method Summary
 ProxySubject getProxySubject()
          Gets the ProxySubject from SessionContextStatement.
 SessionContext getSessionContext()
          Gets the SessionContext from SessionContextStatement.
 int getStatementType()
          Gets the real type of the Statement.
 boolean setProxySubject(ProxySubject proxySubject)
          Sets the ProxySubject for SessionContextStatement.
 java.lang.String toString()
          Create a String representation of the SessionContextStatement.
 java.lang.String toString(boolean includeNS, boolean declareNS)
          Creates a String representation of the ResourceAccessStatement.
 
Methods inherited from class com.sun.identity.saml.assertion.SubjectStatement
getSubject, setSubject
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SESSIONCONTEXT_STATEMENT

public static final int SESSIONCONTEXT_STATEMENT
The Statement is an Session Context Statement.

See Also:
Constant Field Values
Constructor Detail

SessionContextStatement

public SessionContextStatement(SessionContext sessionContext,
                               Subject subject)
                        throws SAMLException
Constructs a SessionContextStatement object from a SessionContext object and a Subject object.

Parameters:
sessionContext - SessionContext object.
subject - Subject object.
Throws:
SAMLException - if sessionContext is null or subject is null.

SessionContextStatement

public SessionContextStatement(SessionContext sessionContext,
                               ProxySubject proxySubject,
                               Subject subject)
                        throws SAMLException
Constructs a SessionContextStatement object from a SessionContext object, a proxySubject and a Subject object.

Parameters:
sessionContext - SessionContext object.
proxySubject - ProxySubject object.
subject - Subject object.
Throws:
SAMLException - if sessionContext is null or subject is null.

SessionContextStatement

public SessionContextStatement(org.w3c.dom.Element element)
                        throws SAMLException
Constructs a SessionContextStatement object from a DOM element.

Parameters:
element - representing a DOM tree element.
Throws:
SAMLException - if there is an error in the sender or in the element definition.
Method Detail

getProxySubject

public ProxySubject getProxySubject()
Gets the ProxySubject from SessionContextStatement.

Returns:
ProxySubject.

getSessionContext

public SessionContext getSessionContext()
Gets the SessionContext from SessionContextStatement.

Returns:
SessionContext

setProxySubject

public boolean setProxySubject(ProxySubject proxySubject)
Sets the ProxySubject for SessionContextStatement.

Parameters:
proxySubject - the object to be set.
Returns:
true if the operation is successful. Otherwise return false.

getStatementType

public int getStatementType()
Gets the real type of the Statement.

Specified by:
getStatementType in class Statement
Returns:
An integer which represents SessionContextStatement internally.

toString

public java.lang.String toString()
Create a String representation of the SessionContextStatement.

Returns:
A String representation of the SessionContextStatement. element.

toString

public java.lang.String toString(boolean includeNS,
                                 boolean declareNS)
Creates a String representation of the ResourceAccessStatement.

Specified by:
toString in class SubjectStatement
Parameters:
includeNS - Determines whether or not the namespace qualifier is prepended to the Element when converted.
declareNS - Determines whether or not the namespace is declared within the Element.
Returns:
A String representation of the <saml:ResourceAccessStatement> element.


Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.