Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.1.3)

Part Number E41849-02

weblogic.security.providers.authentication
Class SubjectComponentData

java.lang.Object
  extended by weblogic.security.providers.authentication.SubjectComponentData

public final class SubjectComponentData
extends Object

SubjectComponentDataImpl implements SubjectComponentData, which is an immutable collection of subject components which may be used to create a Subject.


Constructor Summary
SubjectComponentData(String userName, Set<String> groups, Set<Principal> principals, Set<Object> privateCredentials, Set<Object> publicCredentials)
          The Constructor.
 
Method Summary
 Set<String> getGroups()
          Determines the Subject group membership.
 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.
 String toString()
          Provides a string representation of the contained data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SubjectComponentData

public SubjectComponentData(String userName,
                            Set<String> groups,
                            Set<Principal> principals,
                            Set<Object> privateCredentials,
                            Set<Object> publicCredentials)
The Constructor.

NOTE THAT null given to any parameter is accepted and returned in the corresponding getter.

Parameters:
userName - Subject user name
groups - Subject group membership
principals - 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.
Method Detail

getUserName

public String getUserName()
Determines the Subject username.

Returns:
The username, or null if none

getGroups

public Set<String> getGroups()
Determines the Subject group membership.

Returns:
The immutable set of groups, or null if none.

getPrincipals

public Set<Principal> getPrincipals()
Determines the Subject set of additional principals.

Returns:
The immutable set of principals, or null if none.

getPrivateCredentials

public Set<Object> getPrivateCredentials()
Determines the Subject set of private credentials.

Returns:
The immutable set of private credentials, or null if none.

getPublicCredentials

public Set<Object> getPublicCredentials()
Determines the Subject set of public credentials.

Returns:
The immutable set of public credentials, or null if none.

toString

public String toString()
Provides a string representation of the contained data.

Overrides:
toString in class Object
See Also:
Object.toString()

Copyright 1996, 2014, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.1.3)

Part Number E41849-02