com.sun.identity.saml.assertion
Class SubjectStatement

java.lang.Object
  extended by com.sun.identity.saml.assertion.Statement
      extended by com.sun.identity.saml.assertion.SubjectStatement
Direct Known Subclasses:
AttributeStatement, AuthenticationStatement, AuthorizationDecisionStatementBase, ResourceAccessStatement, SessionContextStatement

public abstract class SubjectStatement
extends Statement

The SubjectStatement element is an extension point that allows other assertion-based applications to reuse the SAML assertion framework. It contains a Subject 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.


Field Summary
protected  Subject _subject
           
 
Fields inherited from class com.sun.identity.saml.assertion.Statement
ATTRIBUTE_STATEMENT, AUTHENTICATION_STATEMENT, AUTHORIZATION_DECISION_STATEMENT, NOT_SUPPORTED
 
Constructor Summary
protected SubjectStatement()
          Default Constructor
 
Method Summary
 Subject getSubject()
          Returns the Subject within the SubjectStatement.
 boolean setSubject(Subject subject)
          Set the Subject for the SubjectStatement.
abstract  String toString(boolean includeNS, boolean declareNS)
          Creates a String representation of the SubjectStatement.
 
Methods inherited from class com.sun.identity.saml.assertion.Statement
getStatementType
 

Field Detail

_subject

protected Subject _subject
Constructor Detail

SubjectStatement

protected SubjectStatement()
Default Constructor

Method Detail

getSubject

public Subject getSubject()
Returns 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.

toString

public abstract String toString(boolean includeNS,
                                boolean declareNS)
Creates a String representation of the SubjectStatement.

Specified by:
toString in class Statement
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.