| Constructor and Description |
|---|
SubjectComponentData(String userName,
Set<String> groups,
Set<Principal> principals,
Set<Object> privateCredentials,
Set<Object> publicCredentials)
Constructs an instance with an undefined Identity Domain.
|
SubjectComponentData(String userName,
Set<String> groups,
Set<Principal> principals,
Set<Object> privateCredentials,
Set<Object> publicCredentials,
String identityDomain)
Constructs an instance with the specified Identity Domain.
|
SubjectComponentData(SubjectComponentData subjectComponentData,
String identityDomain)
Constructs an instance with the specified Identity Domain, copying the other
subject component references from the given
SubjectComponentData object. |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getGroups()
Determines the Subject group membership.
|
String |
getIdentityDomain()
Determines the Subject identity domain.
|
Set<Principal> |
getPrincipals()
Determines the Subject set of additional principals.
|
Set<Object> |
getPrivateCredentials()
Determines the Subject set of private credentials.
|
Set<Object> |
getPublicCredentials()
Determines the Subject set of public credentials.
|
String |
getUserName()
Determines the Subject username, without encoded identity domain.
|
boolean |
isIdentityDomainSet()
Determines whether the Subject identity domain has been set.
|
String |
toString()
Provides a string representation of the contained data.
|
public SubjectComponentData(String userName, Set<String> groups, Set<Principal> principals, Set<Object> privateCredentials, Set<Object> publicCredentials)
The instance created, using this constructor, would have
SubjectComponentData.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(String userName, Set<String> groups, Set<Principal> principals, Set<Object> privateCredentials, Set<Object> publicCredentials, String identityDomain)
The instance created, using this constructor, would have
SubjectComponentData.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, String identityDomain) throws NullPointerException
SubjectComponentData object.
The instance created, using this constructor, would have
SubjectComponentData.isIdentityDomainSet() return true.
subjectComponentData - SubjectComponentData instance from which to copy.identityDomain - Subject identity domain, which may be
null or empty String.NullPointerException - The given subjectComponentData was null.public String getUserName()
public String getIdentityDomain()
SubjectComponentData.isIdentityDomainSet() returns true.
Otherwise, this returned value is invalid.public boolean isIdentityDomainSet()
true if identity domain has been set, otherwise false.public Set<String> getGroups()
public Set<Principal> getPrincipals()
public Set<Object> getPrivateCredentials()
public Set<Object> getPublicCredentials()
public String toString()
toString in class ObjectObject.toString()