com.sun.xml.wss.saml.assertion.saml11.jaxb20
Class Subject
java.lang.Object
com.sun.xml.wss.saml.internal.saml11.jaxb20.SubjectType
com.sun.xml.wss.saml.assertion.saml11.jaxb20.Subject
- All Implemented Interfaces:
- Subject
public class Subject
- extends SubjectType
- implements Subject
The Subject element specifies one or more subjects. It contains either or
both of the following elements:NameIdentifier;
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
NameIdentifier and a SubjectConfirmation element are
present, the issuer is asserting that the statement is true of both subjects
being identified. A element SHOULD NOT identify more than one
principal.
| Fields inherited from class com.sun.xml.wss.saml.internal.saml11.jaxb20.SubjectType |
content |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static final Logger log
Subject
public Subject(NameIdentifier nameIdentifier,
SubjectConfirmation subjectConfirmation)
- Constructs a Subject object from a
NameIdentifier
object and a SubjectConfirmation object.
- Parameters:
nameIdentifier - NameIdentifier object.subjectConfirmation - SubjectConfirmation 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.
Subject
public Subject(SubjectType subjectType)
getNameIdentifier
public NameIdentifier getNameIdentifier()
- Specified by:
getNameIdentifier in interface Subject
getNameId
public NameID getNameId()
- Specified by:
getNameId in interface Subject
getSubjectConfirmation
public SubjectConfirmation getSubjectConfirmation()
- Specified by:
getSubjectConfirmation in interface Subject
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:
subjectElement - 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.
Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.