Interface Subject

  • All Known Implementing Classes:
    Subject, Subject

    public interface 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.

    The following schema fragment specifies the expected content contained within SAML Subject element.

     <complexType name="SubjectType">
       <complexContent>
         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
           <choice>
             <sequence>
               <element ref="{urn:oasis:names:tc:SAML:1.0:assertion}NameIdentifier"/>
               <element ref="{urn:oasis:names:tc:SAML:1.0:assertion}SubjectConfirmation" minOccurs="0"/>
             </sequence>
             <element ref="{urn:oasis:names:tc:SAML:1.0:assertion}SubjectConfirmation"/>
           </choice>
         </restriction>
       </complexContent>
     </complexType>