Package com.sun.identity.idm
Class IdType
java.lang.Object
com.sun.identity.idm.IdType
- All Implemented Interfaces:
Serializable
The class
IdType
defines the types of supported identities,
and provides static constants for these identities. Currently defined
identities are IdType.USER
, IdType.ROLE
,
IdType.GROUP
and IdType.AGENT
. The usage of
the respective types are defined along with their declaration.
An IdType
can 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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IdType
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.static final IdType
Identity type of OpenAM agents under the OpenAM agent groups.static final IdType
Identity type of OpenAM agent only.static final IdType
Identity type of filter role.static final IdType
Identity type of GROUPstatic final IdType
Identity type for an OAuth 2.0 dynamic client agent.static final IdType
Identity type for an OAuth 2.0 dynamic client agent and agent group union.static final IdType
Identity type for a Thing that also doubles as an OAuth 2.0 client.static final IdType
static final IdType
Identity type of ROLEstatic final IdType
Identity type of USER -
Method Summary
Modifier and TypeMethodDescriptionReturns a set of types of identities that this type can add as members.Returns a set of types of identities that this type can be a member of.Returns a set of types of identities this type can hav as its' members.boolean
getName()
Returns the name of this type, for exampleuser
for type User.static IdType
Get theIdType
.int
hashCode()
Returns the hash code of the objecttoString()
static Collection<IdType>
values()
Get theIdType
values.
-
Field Details
-
USER
Identity type of USER -
ROLE
Identity type of ROLE -
GROUP
Identity type of GROUP -
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
Identity type of filter role. -
REALM
-
AGENTONLY
Identity type of OpenAM agent only. -
AGENTGROUP
Identity type of OpenAM agents under the OpenAM agent groups. -
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
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. -
OAUTH2_THING
Identity type for a Thing that also doubles as an OAuth 2.0 client. Use this IdType to create new OAuth2Things, which can subsequently be read by either providing OAUTH2_THING or AGENTONLY IdTypes.
-
-
Method Details
-
getType
-
values
Get theIdType
values.- Returns:
- the types.
-
equals
-
toString
-
hashCode
public int hashCode()Returns the hash code of the object -
getName
Returns the name of this type, for exampleuser
for type User.- Returns:
- Name of the this type.
-
canHaveMembers
Returns a set of types of identities this type can hav as its' members.- Returns:
- Set of
IdType
which can be members of this identity type.
-
canBeMemberOf
Returns a set of types of identities that this type can be a member of.- Returns:
- Set of
IdType
.
-
canAddMembers
Returns a set of types of identities that this type can add as members.- Returns:
- Set of
IdType
.
-