Package 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,AuthorizationDecisionStatementBase
@SupportedAll public abstract class SubjectStatement extends Statement
TheSubjectStatementelement is an extension point that allows other assertion-based applications to reuse the SAML assertion framework. It contains aSubjectelement that allows issuer to describe a subject. ItsSubjectStatementAbstractTypecomplex type is abstract; extension elements must usexsi:typeattribute to indicate the derived type. 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected Subject_subject- 
Fields inherited from class com.sun.identity.saml.assertion.Statement
ATTRIBUTE_STATEMENT, AUTHENTICATION_STATEMENT, AUTHORIZATION_DECISION_STATEMENT, NOT_SUPPORTED 
 - 
 
- 
Constructor Summary
Constructors Modifier Constructor Description protectedSubjectStatement()Default Constructor 
- 
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description SubjectgetSubject()Returns the Subject within theSubjectStatement.booleansetSubject(Subject subject)Set the Subject for theSubjectStatement.abstract StringtoString(boolean includeNS, boolean declareNS)Creates a String representation of theSubjectStatement.- 
Methods inherited from class com.sun.identity.saml.assertion.Statement
getStatementType 
 - 
 
 - 
 
- 
- 
Field Detail
- 
_subject
protected Subject _subject
 
 - 
 
- 
Method Detail
- 
getSubject
public Subject getSubject()
Returns the Subject within theSubjectStatement.- Returns:
 - The subject within the statement.
 
 
- 
setSubject
public boolean setSubject(Subject subject)
Set the Subject for theSubjectStatement.- Parameters:
 subject- A Subject object.- Returns:
 - true if the operation is successful.
 
 
- 
toString
public abstract String toString(boolean includeNS, boolean declareNS)
Creates a String representation of theSubjectStatement.- Specified by:
 toStringin classStatement- Parameters:
 includeNS- Determines whether or not the namespace qualifier is prepended to the Element when converted.declareNS- Determines whether or not the namespace is declared within the Element.- Returns:
 - A String representation of the 
         
<saml:SubjectStatement>element. 
 
 - 
 
 -