|
|||||||||
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
public class 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.
Field Summary | |
---|---|
protected Date |
_authenticationInstant
|
protected AuthnContext |
_authnContext
|
protected Date |
_issueInstant
|
protected String |
_providerID
|
protected SessionSubject |
_sessionSubject
|
Constructor Summary | |
---|---|
protected |
SessionContext()
Default constructor |
|
SessionContext(Element element)
Constructs an SessionContext object from a DOM Element. |
|
SessionContext(SessionSubject sessionSubject,
AuthnContext authnContext,
String providerID)
Constructs a SessionContext object from a
SessionSubject object, a AuthnContext
object and a String . |
Method Summary | |
---|---|
AuthnContext |
getAuthnContext()
Returns the AuthnContext within the
SessionContext object. |
String |
getProviderID()
Returns the ProviderID in the SessionContext
object. |
SessionSubject |
getSessionSubject()
Returns the SessionSubject within the
SessionContext object. |
boolean |
setAuthnContext(AuthnContext authnContext)
Sets the AuthnContext in the SessionContext . |
void |
setSessionSubject(SessionSubject sub)
Sets the SessionSubject object. |
String |
toXMLString()
Returns a String representation of the SessionContext
element. |
String |
toXMLString(boolean includeNS,
boolean declareNS)
Returns a String representation of the <SessionContext>
element. |
Field Detail |
---|
protected SessionSubject _sessionSubject
protected AuthnContext _authnContext
protected String _providerID
protected Date _issueInstant
protected Date _authenticationInstant
Constructor Detail |
---|
protected SessionContext()
public SessionContext(SessionSubject sessionSubject, AuthnContext authnContext, 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(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
object.
SessionSubject
object.public void setSessionSubject(SessionSubject sub)
SessionSubject
object.
sub
- SessionSubject
object.public AuthnContext getAuthnContext()
AuthnContext
within the
SessionContext
object.
AuthnContext
object.public String getProviderID()
ProviderID
in the SessionContext
object.
ProviderID
objectpublic boolean setAuthnContext(AuthnContext authnContext)
AuthnContext
in the SessionContext
.
authnContext
- AuthnContext
to be set.
AuthnContext
was set.public String toXMLString() throws FSMsgException
SessionContext
element.
<saml:Subject>
.
ParseException
- if could not convert String Date
expression to Date object.
FSMsgException
- if could not get AuthnContext
XML
String representation.public String toXMLString(boolean includeNS, boolean declareNS) throws 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.
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 |