Class Subject
- java.lang.Object
-
- com.sun.xml.wss.saml.internal.saml20.jaxb20.SubjectType
-
- com.sun.xml.wss.saml.assertion.saml20.jaxb20.Subject
-
- All Implemented Interfaces:
Subject
public class Subject extends SubjectType implements Subject
TheSubjectelement specifies one or more subjects. It contains either or both of the following elements:NameID; An identification of a subject by its name and security domain.SubjectConfirmation; Information that allows the subject to be authenticated. If aSubjectelement contains more than one subject specification, the issuer is asserting that the surrounding statement is true for all of the subjects specified. For example, if both aNameIDand aSubjectConfirmationelement are present, the issuer is asserting that the statement is true of both subjects being identified. Aelement SHOULD NOT identify more than one principal.
-
-
Field Summary
Fields Modifier and Type Field Description protected static Loggerlog-
Fields inherited from class com.sun.xml.wss.saml.internal.saml20.jaxb20.SubjectType
content
-
-
Constructor Summary
Constructors Constructor Description Subject(NameID nameId, SubjectConfirmation subjectConfirmation)Constructs a Subject object from aNameIDobject and aSubjectConfirmationobject.Subject(SubjectType subjectType)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SubjectTypefromElement(Element element)This constructor builds a subject element from an existing XML block which has already been built into a DOM.NameIDgetNameId()NameIdentifiergetNameIdentifier()SubjectConfirmationgetSubjectConfirmation()-
Methods inherited from class com.sun.xml.wss.saml.internal.saml20.jaxb20.SubjectType
getContent
-
-
-
-
Field Detail
-
log
protected static final Logger log
-
-
Constructor Detail
-
Subject
public Subject(NameID nameId, SubjectConfirmation subjectConfirmation)
Constructs a Subject object from aNameIDobject and aSubjectConfirmationobject.- Parameters:
nameId-NameIDobject.subjectConfirmation-SubjectConfirmationobject.- Throws:
SAMLException- if it could not process the Element properly, implying that there is an error in the sender or in the element definition.
-
Subject
public Subject(SubjectType subjectType)
-
-
Method Detail
-
fromElement
public static SubjectType fromElement(Element element) throws SAMLException
This constructor builds a subject element from an existing XML block which has already been built into a DOM.- Parameters:
element- An Element representing DOM tree for Subject object- Throws:
SAMLException- if it could not process the Element properly, implying that there is an error in the sender or in the element definition.
-
getNameIdentifier
public NameIdentifier getNameIdentifier()
- Specified by:
getNameIdentifierin interfaceSubject
-
getSubjectConfirmation
public SubjectConfirmation getSubjectConfirmation()
- Specified by:
getSubjectConfirmationin interfaceSubject
-
-