public final class SubjectComponentData
extends java.lang.Object
SubjectComponentData is an immutable collection of subject components
 which may be used to create a Subject| Constructor | Description | 
|---|---|
| SubjectComponentData(java.lang.String userName,
                    java.util.Set<java.lang.String> groups,
                    java.util.Set<java.security.Principal> principals,
                    java.util.Set<java.lang.Object> privateCredentials,
                    java.util.Set<java.lang.Object> publicCredentials) | Constructs an instance with an undefined Identity Domain. | 
| SubjectComponentData(java.lang.String userName,
                    java.util.Set<java.lang.String> groups,
                    java.util.Set<java.security.Principal> principals,
                    java.util.Set<java.lang.Object> privateCredentials,
                    java.util.Set<java.lang.Object> publicCredentials,
                    java.lang.String identityDomain) | Constructs an instance with the specified Identity Domain. | 
| SubjectComponentData(SubjectComponentData subjectComponentData,
                    java.lang.String identityDomain) | Constructs an instance with the specified Identity Domain, copying the other
 subject component references from the given  SubjectComponentDataobject. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| java.util.Set<java.lang.String> | getGroups() | Determines the Subject group membership. | 
| java.lang.String | getIdentityDomain() | Determines the Subject identity domain. | 
| java.util.Set<java.security.Principal> | getPrincipals() | Determines the Subject set of additional principals. | 
| java.util.Set<java.lang.Object> | getPrivateCredentials() | Determines the Subject set of private credentials. | 
| java.util.Set<java.lang.Object> | getPublicCredentials() | Determines the Subject set of public credentials. | 
| java.lang.String | getUserName() | Determines the Subject username, without encoded identity domain. | 
| boolean | isIdentityDomainSet() | Determines whether the Subject identity domain has been set. | 
| java.lang.String | toString() | Provides a string representation of the contained data. | 
public SubjectComponentData(java.lang.String userName,
                            java.util.Set<java.lang.String> groups,
                            java.util.Set<java.security.Principal> principals,
                            java.util.Set<java.lang.Object> privateCredentials,
                            java.util.Set<java.lang.Object> publicCredentials)
 The instance created, using this constructor, would have
 isIdentityDomainSet() return false. This implies
 callers, such as Identity Asserter implementations,
 may supplement the SubjectComponentData with a configured IdentityDomain.
 
 NOTE THAT null given to any parameter is accepted and returned
 in the corresponding getter.
userName - Subject user name, without encoded identity domain.groups - Subject group membershipprincipals - Additional subject principals, we assume Principal
                    implementations are immutable.privateCredentials - Subject private credentials, we assume credentials
                           are immutable.publicCredentials - Subject public credentials, we assume credentials
                          are immutable.public SubjectComponentData(java.lang.String userName,
                            java.util.Set<java.lang.String> groups,
                            java.util.Set<java.security.Principal> principals,
                            java.util.Set<java.lang.Object> privateCredentials,
                            java.util.Set<java.lang.Object> publicCredentials,
                            java.lang.String identityDomain)
 The instance created, using this constructor, would have
 isIdentityDomainSet() return true.
 
 NOTE THAT null given to any parameter is accepted and returned
 in the corresponding getter.
userName - Subject user name, without encoded identity domain.groups - Subject group membershipprincipals - Additional subject principals, we assume Principal
                    implementations are immutable.privateCredentials - Subject private credentials, we assume credentials
                           are immutable.publicCredentials - Subject public credentials, we assume credentials
                          are immutable.identityDomain - Subject identity domain, which may be
                       null or empty String.public SubjectComponentData(SubjectComponentData subjectComponentData, java.lang.String identityDomain) throws java.lang.NullPointerException
SubjectComponentData object.
 
 The instance created, using this constructor, would have
 isIdentityDomainSet() return true.
subjectComponentData - SubjectComponentData instance from which to copy.identityDomain - Subject identity domain, which may be
                       null or empty String.java.lang.NullPointerException - The given subjectComponentData was null.public java.lang.String getUserName()
public java.lang.String getIdentityDomain()
isIdentityDomainSet()true.
 Otherwise, this returned value is invalid.public boolean isIdentityDomainSet()
true if identity domain has been set, otherwise false.public java.util.Set<java.lang.String> getGroups()
public java.util.Set<java.security.Principal> getPrincipals()
public java.util.Set<java.lang.Object> getPrivateCredentials()
public java.util.Set<java.lang.Object> getPublicCredentials()
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()