Class ProxySubject
- java.lang.Object
-
- com.sun.identity.saml.assertion.Subject
-
- com.sun.identity.liberty.ws.security.ProxySubject
-
public class ProxySubject extends Subject
TheProxySubjectclass represents the identity of a proxy, the confirmation key and confirmation obligation the proxy must posess and demonstrate for authentication purpose.
-
-
Field Summary
-
Fields inherited from class com.sun.identity.saml.assertion.Subject
_nameIdentifier, _subjectConfirmation
-
-
Constructor Summary
Constructors Constructor Description ProxySubject(NameIdentifier nameIdentifier)Constructs aProxySubjectobject from aNameIdentifierobject.ProxySubject(NameIdentifier nameIdentifier, SubjectConfirmation subjectConfirmation)Constructs aProxySubjectobject from aNameIdentifierobject and aSubjectConfirmationobject.ProxySubject(SubjectConfirmation subjectConfirmation)Constructs aProxySubjectobject from aSubjectConfirmationobject.ProxySubject(Element subjectElement)Constructs aProxySubjectobject from a DOM Element.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(ProxySubject subject)Checks for equality between this object and theProxySubjectpassed down as parameter.StringtoString()Creates a String representation of the element.StringtoString(boolean includeNS, boolean declareNS)Creates a String representation of the<Subject>element.-
Methods inherited from class com.sun.identity.saml.assertion.Subject
createNameIdentifier, createSubjectConfirmation, equals, getNameIdentifier, getSubjectConfirmation, removeNameIdentifier, removeSubjectConfirmation, setNameIdentifier, setSubjectConfirmation
-
-
-
-
Constructor Detail
-
ProxySubject
public ProxySubject(NameIdentifier nameIdentifier, SubjectConfirmation subjectConfirmation) throws SAMLException
Constructs aProxySubjectobject from aNameIdentifierobject and aSubjectConfirmationobject.- Parameters:
nameIdentifier-NameIdentifierobject.subjectConfirmation-SubjectConfirmationobject.- Throws:
SAMLException- ifnameIdentifierandSubjectConfirmationare null;
-
ProxySubject
public ProxySubject(NameIdentifier nameIdentifier) throws SAMLException
Constructs aProxySubjectobject from aNameIdentifierobject.- Parameters:
nameIdentifier-NameIdentifierobject.- Throws:
SAMLException- ifnameIdentifieris null.
-
ProxySubject
public ProxySubject(Element subjectElement) throws SAMLException
Constructs aProxySubjectobject from a DOM Element. which has already been built into a DOM.- Parameters:
subjectElement- An Element representing DOM tree forProxySubjectobject.- Throws:
SAMLException- if it could not process the Element properly, implying that there is an error in the sender or in the element definition.
-
ProxySubject
public ProxySubject(SubjectConfirmation subjectConfirmation) throws SAMLException
Constructs aProxySubjectobject from aSubjectConfirmationobject.- Parameters:
subjectConfirmation-SubjectConfirmationobject to be added to the object.- Throws:
SAMLException- ifsubjectConfirmationis null.
-
-
Method Detail
-
equals
public boolean equals(ProxySubject subject)
Checks for equality between this object and theProxySubjectpassed down as parameter.- Parameters:
subject-ProxySubjectto be checked- Returns:
- true if the two are EXACTLY equal.
-
toString
public String toString()
Creates a String representation of the element.
-
toString
public String toString(boolean includeNS, boolean declareNS)
Creates a String representation of the<Subject>element.
-
-