|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.identity.liberty.ws.security.SessionContext
The SessionContext
class represents session status of an entity
to another system entity. It is supplied to a relying party to support policy
enforcement.
Constructor Summary | |
SessionContext(org.w3c.dom.Element element)
Constructs an SessionContext object from a DOM Element. |
|
SessionContext(SessionSubject sessionSubject,
AuthnContext authnContext,
java.lang.String providerID)
Constructs a SessionContext object from a
SessionSubject object, a AuthnContext
object and a String . |
Method Summary | |
AuthnContext |
getAuthnContext()
Gets the AuthnContext within the SessionContext
element. |
java.lang.String |
getProviderID()
Gets the ProviderID within the SessionContext
element. |
SessionSubject |
getSessionSubject()
Gets the SessionSubject within the
SessionContext . |
boolean |
setAuthnContext(AuthnContext authnContext)
Sets the AuthnContext to the SessionContext . |
void |
setSessionSubject(SessionSubject sub)
Sets the SessionSubject within the
SessionContext . |
java.lang.String |
toXMLString()
Returns a String representation of the SessionContext
element. |
java.lang.String |
toXMLString(boolean includeNS,
boolean declareNS)
Returns a String representation of the <SessionContext>
element. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SessionContext(SessionSubject sessionSubject, AuthnContext authnContext, java.lang.String providerID) throws SAMLException
SessionContext
object from a
SessionSubject
object, a AuthnContext
object and a String
.
sessionSubject
- SessionSubject
object.authnContext
- authentication context object.providerID
- provider ID.
SAMLException
- if sessionSubject
is null or
providerID
is null.public SessionContext(org.w3c.dom.Element element) throws SAMLException
SessionContext
object from a DOM Element.
element
- representing a DOM tree element.
SAMLException
- if there is an error in the sender or in the
element definition.Method Detail |
public SessionSubject getSessionSubject()
SessionSubject
within the
SessionContext
.
element.
SessionSubject
object, within this
SessionContext
.public void setSessionSubject(SessionSubject sub)
SessionSubject
within the
SessionContext
.
element.
sub
- SessionSubject
object, within this
SessionContext
.public AuthnContext getAuthnContext()
AuthnContext
within the SessionContext
element.
AuthnContext
object, within this
SessionSubject
.public java.lang.String getProviderID()
ProviderID
within the SessionContext
element.
ProviderID
object, within this
SessionSubject
.public boolean setAuthnContext(AuthnContext authnContext)
AuthnContext
to the SessionContext
.
authnContext
- AuthnContext
to be set.
public java.lang.String toXMLString() throws java.text.ParseException, FSMsgException
SessionContext
element.
<saml:Subject>
.
java.text.ParseException
- if could not convert String Date
expression to Date object.
FSMsgException
- if could not get AuthnContext
XML
String representation.public java.lang.String toXMLString(boolean includeNS, boolean declareNS) throws java.text.ParseException, FSMsgException
<SessionContext>
element.
includeNS
- if true prepends all elements by their Namespace
name <saml:Subject>
.declareNS
- if true includes the namespace within the
generated XML.
java.text.ParseException
- if could not convert String Date
expression to Date object.
FSMsgException
- if could not get AuthnContext
XML
String representation.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |