public class SessionSubject extends FSSubject
SessionSubject
class represents a liberty subject
with associated session status.Constructor and Description |
---|
SessionSubject(Element subjectElement)
Constructs a
SessionSubject object from a DOM element. |
SessionSubject(NameIdentifier nameIdentifier,
IDPProvidedNameIdentifier idpNameIdentifier)
Constructs a
SessionSubject object from a
NameIdentifier object and a
IDPProvidedNameIdentifier object. |
SessionSubject(NameIdentifier nameIdentifier,
SubjectConfirmation subjectConfirmation,
IDPProvidedNameIdentifier idpNameIdentifier)
Constructs a
SessionSubject object from a
NameIdentifier object, SubjectConfirmation and
IDPProvidedNameIdentifier object. |
SessionSubject(SubjectConfirmation subjectConfirmation)
Constructs a
SessionSubject object from a
SubjectConfirmation object. |
Modifier and Type | Method and Description |
---|---|
String |
toXMLString()
Returns a String representation of the element.
|
String |
toXMLString(boolean includeNS,
boolean declareNS)
Returns a String representation of the
<Subject>
element. |
getIDPProvidedNameIdentifier, setIDPProvidedNameIdentifier
createNameIdentifier, createSubjectConfirmation, equals, getNameIdentifier, getSubjectConfirmation, removeNameIdentifier, removeSubjectConfirmation, setNameIdentifier, setSubjectConfirmation, toString, toString
public SessionSubject(NameIdentifier nameIdentifier, SubjectConfirmation subjectConfirmation, IDPProvidedNameIdentifier idpNameIdentifier) throws FSMsgException, SAMLException
SessionSubject
object from a
NameIdentifier
object, SubjectConfirmation
and
IDPProvidedNameIdentifier
object.nameIdentifier
- NameIdentifier
object.subjectConfirmation
- SubjectConfirmation
object.idpNameIdentifier
- IDPProvidedNameIdentifier
object.FSMsgException
- if idpNameIdentifier
is null.SAMLException
- if both nameIdentifier
and
subjectConfirmation
are null.public SessionSubject(NameIdentifier nameIdentifier, IDPProvidedNameIdentifier idpNameIdentifier) throws FSMsgException, SAMLException
SessionSubject
object from a
NameIdentifier
object and a
IDPProvidedNameIdentifier
object.nameIdentifier
- NameIdentifier
object.idpNameIdentifier
- IDPProvidedNameIdentifier
object.FSMsgException
- if idpNameIdentifier
is null.SAMLException
- if nameIdentifier
is null.public SessionSubject(Element subjectElement) throws FSMsgException, SAMLException
SessionSubject
object from a DOM element.
which has already been built into a DOM.subjectElement
- An Element representing DOM tree for Subject objectSAMLException
- if can not create the object of
NameIdentifier
or
SubjectConfirmation
inside the DOM element.FSMsgException
- if it could not process the Element properly,
implying that there is an error in the sender or in the
element definition.public SessionSubject(SubjectConfirmation subjectConfirmation) throws SAMLException
SessionSubject
object from a
SubjectConfirmation
object.subjectConfirmation
- SubjectConfirmation
object to be
added to the object.SAMLException
- if subjectConfirmation
is null.public String toXMLString() throws FSMsgException
toXMLString
in class FSSubject
<saml:Subject>
.FSMsgException
- if could not create a String
representation of this element.public String toXMLString(boolean includeNS, boolean declareNS) throws FSMsgException
<Subject>
element.toXMLString
in class FSSubject
includeNS
- if true prepends all elements by their Namespace
name example <saml:Subject>
declareNS
- if true includes the namespace within the
generated XML.FSMsgException
- if could not create a String
representation of this element.Copyright © 2010-2018, ForgeRock All Rights Reserved.