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
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.
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.
- Overrides:
getStatementType
in class Statement
- Returns:
- An integer which represents
SessionContextStatement
internally.
toString
public java.lang.String toString()
- Create a String representation of the
SessionContextStatement
.
- Overrides:
toString
in 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:
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.