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
TheSessionContextStatementelement conveys session status of an entity to another system entity within the body of an<saml:assertion>element.
-
-
Field Summary
Fields Modifier and Type Field Description protected ProxySubject_proxySubjectprotected SessionContext_sessionContextstatic intSESSIONCONTEXT_STATEMENTThe Statement is an Session Context Statement.-
Fields inherited from class com.sun.identity.saml.assertion.SubjectStatement
_subject
-
Fields inherited from class com.sun.identity.saml.assertion.Statement
ATTRIBUTE_STATEMENT, AUTHENTICATION_STATEMENT, AUTHORIZATION_DECISION_STATEMENT, NOT_SUPPORTED
-
-
Constructor Summary
Constructors Constructor Description SessionContextStatement(SessionContext sessionContext, ProxySubject proxySubject, Subject subject)Constructs aSessionContextStatementobject from aSessionContextobject, aproxySubjectand aSubjectobject.SessionContextStatement(SessionContext sessionContext, Subject subject)Constructs aSessionContextStatementobject from aSessionContextobject and aSubjectobject.SessionContextStatement(Element element)Constructs aSessionContextStatementobject from a DOM element.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProxySubjectgetProxySubject()Return theProxySubjectin theSessionContextStatement.SessionContextgetSessionContext()Returns theSessionContextin theSessionContextStatement.intgetStatementType()Returns the real type of the Statement.booleansetProxySubject(ProxySubject proxySubject)Sets theProxySubjectforSessionContextStatement.StringtoString()Returns a String representation ofSessionContextStatement.StringtoString(boolean includeNS, boolean declareNS)Returns a String representation of theResourceAccessStatement.-
Methods inherited from class com.sun.identity.saml.assertion.SubjectStatement
getSubject, setSubject
-
-
-
-
Field Detail
-
SESSIONCONTEXT_STATEMENT
public static final int SESSIONCONTEXT_STATEMENT
The Statement is an Session Context Statement.- See Also:
- Constant Field Values
-
_proxySubject
protected ProxySubject _proxySubject
-
_sessionContext
protected SessionContext _sessionContext
-
-
Constructor Detail
-
SessionContextStatement
public SessionContextStatement(SessionContext sessionContext, Subject subject) throws SAMLException
Constructs aSessionContextStatementobject from aSessionContextobject and aSubjectobject.- Parameters:
sessionContext-SessionContextobject.subject-Subjectobject.- Throws:
SAMLException- ifsessionContextis null or subject is null.
-
SessionContextStatement
public SessionContextStatement(SessionContext sessionContext, ProxySubject proxySubject, Subject subject) throws SAMLException
Constructs aSessionContextStatementobject from aSessionContextobject, aproxySubjectand aSubjectobject.- Parameters:
sessionContext-SessionContextobject.proxySubject-ProxySubjectobject.subject-Subjectobject.- Throws:
SAMLException- ifsessionContextis null or subject is null.
-
SessionContextStatement
public SessionContextStatement(Element element) throws SAMLException
Constructs aSessionContextStatementobject from a DOM element.- Parameters:
element- the Document Element- Throws:
SAMLException- if there is an error in the sender or in the element definition.
-
-
Method Detail
-
getProxySubject
public ProxySubject getProxySubject()
Return theProxySubjectin theSessionContextStatement.- Returns:
ProxySubject.
-
getSessionContext
public SessionContext getSessionContext()
Returns theSessionContextin theSessionContextStatement.- Returns:
SessionContext
-
setProxySubject
public boolean setProxySubject(ProxySubject proxySubject)
Sets theProxySubjectforSessionContextStatement.- Parameters:
proxySubject- the object to be set.- Returns:
- true if the operation is successful.
-
getStatementType
public int getStatementType()
Returns the real type of the Statement.- Specified by:
getStatementTypein classStatement- Returns:
- An integer which represents
SessionContextStatementinternally.
-
toString
public String toString()
Returns a String representation ofSessionContextStatement.
-
toString
public String toString(boolean includeNS, boolean declareNS)
Returns a String representation of theResourceAccessStatement.- Specified by:
toStringin classSubjectStatement- 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:
- String representation of the
<saml:ResourceAccessStatement>element.
-
-