Saturday 8 August 2015

SAML: Subject element

Subject element specifies about the subject. Subject contains an identifier, a series of one or more subject confirmations.

Following are the elements that Subject element can contain.
Element
Description
Required
<BaseID>
Identifies the subject
Optional
<NameID>
Identifies the subject
Optional
<EncryptedID>
Identifies the subject
Optional
<SubjectConfirmation>
SubjectConfirmation is used to confirm the subject. Subject can have zero (or) more SubjectConfirmations. If more than one subject confirmation is provided, then satisfying any one of them is sufficient to confirm the subject for the purpose of applying the assertion.
Optional

org.opensaml.saml1.core.Subject interface describes Subject element.

Note:
Subject element shouldn’t identify more than one subject (or) principal.
Schema fragment for Subject element looks like following.

<element name="Subject" type="saml:SubjectType" />
<complexType name="SubjectType">
  <choice>
    <sequence>
      <choice>
        <element ref="saml:BaseID" />
        <element ref="saml:NameID" />
        <element ref="saml:EncryptedID" />
      </choice>
      <element ref="saml:SubjectConfirmation" minOccurs="0"
        maxOccurs="unbounded" />
    </sequence>
    <element ref="saml:SubjectConfirmation" maxOccurs="unbounded" />
  </choice>
</complexType>


Prevoius                                                 Next                                                 Home

No comments:

Post a Comment