public class ProxySubject extends Subject
ProxySubject
class represents the identity of a proxy,
the confirmation key and confirmation obligation the proxy must posess and
demonstrate for authentication purpose.Constructor and Description |
---|
ProxySubject(Element subjectElement)
Constructs a
ProxySubject object from a DOM Element. |
ProxySubject(NameIdentifier nameIdentifier)
Constructs a
ProxySubject object from a
NameIdentifier object. |
ProxySubject(NameIdentifier nameIdentifier,
SubjectConfirmation subjectConfirmation)
Constructs a
ProxySubject object from a
NameIdentifier object and a
SubjectConfirmation object. |
ProxySubject(SubjectConfirmation subjectConfirmation)
Constructs a
ProxySubject object from a
SubjectConfirmation object. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(ProxySubject subject)
Checks for equality between this object and the
ProxySubject
passed down as parameter. |
String |
toString()
Creates a String representation of the element.
|
String |
toString(boolean includeNS,
boolean declareNS)
Creates a String representation of the
<Subject>
element. |
createNameIdentifier, createSubjectConfirmation, equals, getNameIdentifier, getSubjectConfirmation, removeNameIdentifier, removeSubjectConfirmation, setNameIdentifier, setSubjectConfirmation
public ProxySubject(NameIdentifier nameIdentifier, SubjectConfirmation subjectConfirmation) throws SAMLException
ProxySubject
object from a
NameIdentifier
object and a
SubjectConfirmation
object.nameIdentifier
- NameIdentifier
object.subjectConfirmation
- SubjectConfirmation
object.SAMLException
- if nameIdentifier
and
SubjectConfirmation
are null;public ProxySubject(NameIdentifier nameIdentifier) throws SAMLException
ProxySubject
object from a
NameIdentifier
object.nameIdentifier
- NameIdentifier
object.SAMLException
- if nameIdentifier
is null.public ProxySubject(Element subjectElement) throws SAMLException
ProxySubject
object from a DOM Element.
which has already been built into a DOM.subjectElement
- An Element representing DOM tree for
ProxySubject
object.SAMLException
- if it could not process the
Element properly, implying that there is an error in the
sender or in the element definition.public ProxySubject(SubjectConfirmation subjectConfirmation) throws SAMLException
ProxySubject
object from a
SubjectConfirmation
object.subjectConfirmation
- SubjectConfirmation
object to be
added to the object.SAMLException
- if subjectConfirmation
is null.public boolean equals(ProxySubject subject)
ProxySubject
passed down as parameter.subject
- ProxySubject
to be checkedpublic String toString()
public String toString(boolean includeNS, boolean declareNS)
<Subject>
element.Copyright © 2010-2018, ForgeRock All Rights Reserved.