com.sun.xml.wss.saml.assertion.saml11.jaxb10
Class Subject

java.lang.Object
  extended by com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.SubjectTypeImpl
      extended by com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.SubjectImpl
          extended by com.sun.xml.wss.saml.assertion.saml11.jaxb10.Subject
All Implemented Interfaces:
com.sun.xml.bind.JAXBObject, com.sun.xml.bind.RIElement, com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.UnmarshallableObject, com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.ValidatableObject, com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.runtime.XMLSerializable, com.sun.xml.wss.saml.internal.saml11.jaxb10.Subject, com.sun.xml.wss.saml.internal.saml11.jaxb10.SubjectType, Element

public class Subject
extends com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.SubjectImpl
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.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.SubjectImpl
com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.SubjectImpl.Unmarshaller
 
Field Summary
protected static Logger log
           
 
Fields inherited from class com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.SubjectImpl
version
 
Fields inherited from class com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.SubjectTypeImpl
_NameIdentifier, _SubjectConfirmation
 
Constructor Summary
Subject(NameIdentifier nameIdentifier, SubjectConfirmation subjectConfirmation)
          Constructs a Subject object from a NameIdentifier object and a SubjectConfirmation object.
Subject(com.sun.xml.wss.saml.internal.saml11.jaxb10.SubjectType subjectType)
           
 
Method Summary
static com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.SubjectTypeImpl 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()
           
 
Methods inherited from class com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.SubjectImpl
____jaxb_ri____getLocalName, ____jaxb_ri____getNamespaceURI, createRawValidator, createUnmarshaller, getPrimaryInterface, serializeAttributes, serializeBody, serializeURIs
 
Methods inherited from class com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.SubjectTypeImpl
setNameIdentifier, setSubjectConfirmation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sun.xml.wss.saml.internal.saml11.jaxb10.SubjectType
setNameIdentifier, setSubjectConfirmation
 

Field Detail

log

protected static final Logger log
Constructor Detail

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(com.sun.xml.wss.saml.internal.saml11.jaxb10.SubjectType subjectType)
Method Detail

getNameIdentifier

public NameIdentifier getNameIdentifier()
Specified by:
getNameIdentifier in interface com.sun.xml.wss.saml.internal.saml11.jaxb10.SubjectType
Overrides:
getNameIdentifier in class com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.SubjectTypeImpl

getNameId

public NameID getNameId()

getSubjectConfirmation

public SubjectConfirmation getSubjectConfirmation()
Specified by:
getSubjectConfirmation in interface com.sun.xml.wss.saml.internal.saml11.jaxb10.SubjectType
Overrides:
getSubjectConfirmation in class com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.SubjectTypeImpl

fromElement

public static com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.SubjectTypeImpl 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.