public class Subject extends SubjectType implements Subject
Subject element 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 a Subject element 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 a
NameID and a SubjectConfirmation element are
present, the issuer is asserting that the statement is true of both subjects
being identified. A | Modifier and Type | Field and Description |
|---|---|
protected static Logger |
log |
content| Constructor and Description |
|---|
Subject(NameID nameId,
SubjectConfirmation subjectConfirmation)
Constructs a Subject object from a
NameID
object and a SubjectConfirmation object. |
Subject(SubjectType subjectType) |
| Modifier and Type | Method and Description |
|---|---|
static SubjectType |
fromElement(Element element)
This constructor builds a subject element from an existing XML block
which has already been built into a DOM.
|
NameID |
getNameId() |
NameIdentifier |
getNameIdentifier() |
SubjectConfirmation |
getSubjectConfirmation() |
getContentprotected static final Logger log
public Subject(NameID nameId, SubjectConfirmation subjectConfirmation)
NameID
object and a SubjectConfirmation object.nameId - NameID object.subjectConfirmation - SubjectConfirmation 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 Subject(SubjectType subjectType)
public static SubjectType fromElement(Element element) throws SAMLException
element - An Element representing DOM tree for Subject objectSAMLException - if it could not process the Element properly,
implying that there is an error in the sender or in the
element definition.public NameIdentifier getNameIdentifier()
getNameIdentifier in interface Subjectpublic SubjectConfirmation getSubjectConfirmation()
getSubjectConfirmation in interface SubjectCopyright © 2005–2018 Oracle Corporation. All rights reserved.