Package com.sun.identity.idm
Class IdType
- java.lang.Object
-
- com.sun.identity.idm.IdType
-
- All Implemented Interfaces:
Serializable
@SupportedAll public class IdType extends Object implements Serializable
The classIdTypedefines the types of supported identities, and provides static constants for these identities. Currently defined identities areIdType.USER,IdType.ROLE,IdType.GROUPandIdType.AGENT. The usage of the respective types are defined along with their declaration.An
IdTypecan also have a 3 character shortened name of the type. This is used for encoding the type when sent to the client in limited length fields. Each short name must be unique.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static IdTypeAGENTIdentity type of AGENT Also from OpenSSO 8.0 onwards, this is the Identity type of the union of agents and those under the agent groups.static IdTypeAGENTGROUPIdentity type of OpenAM agents under the OpenAM agent groups.static IdTypeAGENTONLYIdentity type of OpenAM agent only.static IdTypeFILTEREDROLEIdentity type of filter role.static IdTypeGROUPIdentity type of GROUPstatic IdTypeOAUTH2_DYNAMIC_CLIENTIdentity type for an OAuth 2.0 dynamic client agent.static IdTypeOAUTH2_DYNAMIC_CLIENT_GROUP_UNIONIdentity type for an OAuth 2.0 dynamic client agent and agent group union.static IdTypeREALMstatic IdTypeROLEIdentity type of ROLEstatic IdTypeUSERIdentity type of USER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SetcanAddMembers()Returns a set of types of identities that this type can add as members.SetcanBeMemberOf()Returns a set of types of identities that this type can be a member of.SetcanHaveMembers()Returns a set of types of identities this type can hav as its' members.booleanequals(Object type)StringgetName()Returns the name of this type, for exampleuserfor type User.static IdTypegetType(String type)Get theIdType.inthashCode()Returns the hash code of the objectStringtoString()static Collection<IdType>values()Get theIdTypevalues.
-
-
-
Field Detail
-
USER
public static final IdType USER
Identity type of USER
-
ROLE
public static final IdType ROLE
Identity type of ROLE
-
GROUP
public static final IdType GROUP
Identity type of GROUP
-
AGENT
public static final IdType AGENT
Identity type of AGENT Also from OpenSSO 8.0 onwards, this is the Identity type of the union of agents and those under the agent groups.
-
FILTEREDROLE
public static final IdType FILTEREDROLE
Identity type of filter role.
-
REALM
public static final IdType REALM
-
AGENTONLY
public static final IdType AGENTONLY
Identity type of OpenAM agent only.
-
AGENTGROUP
public static final IdType AGENTGROUP
Identity type of OpenAM agents under the OpenAM agent groups.
-
OAUTH2_DYNAMIC_CLIENT
public static final IdType OAUTH2_DYNAMIC_CLIENT
Identity type for an OAuth 2.0 dynamic client agent. The attributes of this type will exclude the agent group attributes.
-
OAUTH2_DYNAMIC_CLIENT_GROUP_UNION
public static final IdType OAUTH2_DYNAMIC_CLIENT_GROUP_UNION
Identity type for an OAuth 2.0 dynamic client agent and agent group union. The attributes of this type will be the union of a client and its associated group (if applicable), with agent attributes taking precedence.
-
-
Method Detail
-
values
public static Collection<IdType> values()
Get theIdTypevalues.- Returns:
- the types.
-
hashCode
public int hashCode()
Returns the hash code of the object
-
getName
public String getName()
Returns the name of this type, for exampleuserfor type User.- Returns:
- Name of the this type.
-
canHaveMembers
public Set canHaveMembers()
Returns a set of types of identities this type can hav as its' members.- Returns:
- Set of
IdTypewhich can be members of this identity type.
-
canBeMemberOf
public Set canBeMemberOf()
Returns a set of types of identities that this type can be a member of.- Returns:
- Set of
IdType.
-
canAddMembers
public Set canAddMembers()
Returns a set of types of identities that this type can add as members.- Returns:
- Set of
IdType.
-
-