com.sun.identity.saml.assertion
Class SubjectStatement
java.lang.Object
|
+--com.sun.identity.saml.assertion.Statement
|
+--com.sun.identity.saml.assertion.SubjectStatement
- Direct Known Subclasses:
- AttributeStatement, AuthenticationStatement, AuthorizationDecisionStatement
- public abstract class SubjectStatement
- extends Statement
The element is an extension point that allows other
assertion-based applications to reuse the SAML assertion framework. It
contains a element that allows issuer to describe a subject. Its
SubjectStatementAbstractType complex type is abstract; extension elements
must use xsi:type attribute to indicate the derived type.
Method Summary |
Subject |
getSubject()
get the Subject within the SubjectStatement |
boolean |
setSubject(Subject subject)
Set the Subject for the SubjectStatement |
abstract java.lang.String |
toString(boolean includeNS,
boolean declareNS)
Create a String representation of the SubjectStatement |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getSubject
public Subject getSubject()
- get the Subject within the SubjectStatement
- Returns:
- The subject within the statement.
setSubject
public boolean setSubject(Subject subject)
- Set the Subject for the SubjectStatement
- Parameters:
subject:
- A Subject object- Returns:
- true if the operation is successful. Otherwise, return false.
toString
public abstract java.lang.String toString(boolean includeNS,
boolean declareNS)
- Create a String representation of the SubjectStatement
- Overrides:
toString
in class Statement
- Parameters:
includeNS
- : Determines whether or not the namespace qualifier
is prepended to the Element when converteddeclareNS
- : Determines whether or not the namespace is declared
within the Element.- Returns:
- A String representation of the element