com.sun.identity.liberty.ws.security
Class  SessionContextStatement
java.lang.Object
  |
  +--com.sun.identity.saml.assertion.Statement
        |
        +--com.sun.identity.saml.assertion.SubjectStatement
              |
              +--com.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.
 
 
 
 
 
| Methods inherited from class java.lang.Object | 
| equals, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
 
SESSIONCONTEXT_STATEMENT
public static final int SESSIONCONTEXT_STATEMENT
- The Statement is an Session Context Statement.
SessionContextStatement
public SessionContextStatement(SessionContext sessionContext,
                               Subject subject)
                        throws SAMLException
- Constructs a SessionContextStatementobject from aSessionContextobject and aSubjectobject.
- 
- Parameters:
- sessionContext-- SessionContextobject.
- subject-- Subjectobject.
- Throws:
- SAMLException- if- sessionContextis null or subject
 is null.
 
SessionContextStatement
public SessionContextStatement(SessionContext sessionContext,
                               ProxySubject proxySubject,
                               Subject subject)
                        throws SAMLException
- Constructs a SessionContextStatementobject from aSessionContextobject, aproxySubjectand
 aSubjectobject.
- 
- Parameters:
- sessionContext-- SessionContextobject.
- proxySubject-- ProxySubjectobject.
- subject-- Subjectobject.
- Throws:
- SAMLException- if- sessionContextis null or
            subject is null.
 
SessionContextStatement
public SessionContextStatement(org.w3c.dom.Element element)
                        throws SAMLException
- Constructs a SessionContextStatementobject 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.
 
getProxySubject
public ProxySubject getProxySubject()
- Gets the ProxySubjectfromSessionContextStatement.
- 
- Returns:
- ProxySubject.
 
getSessionContext
public SessionContext getSessionContext()
- Gets the SessionContextfromSessionContextStatement.
- 
- Returns:
- SessionContext
 
setProxySubject
public boolean setProxySubject(ProxySubject proxySubject)
- Sets the ProxySubjectforSessionContextStatement.
- 
- 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.- 
- Overrides:
- getStatementTypein class- Statement
 
- 
- Returns:
- An integer which represents SessionContextStatementinternally.
 
toString
public java.lang.String toString()
- Create a String representation of the SessionContextStatement.
- 
- Overrides:
- toStringin class- java.lang.Object
 
- 
- 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.
- 
- Overrides:
- toStringin 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.