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 classIdType
defines the types of supported identities, and provides static constants for these identities. Currently defined identities areIdType.USER
,IdType.ROLE
,IdType.GROUP
andIdType.AGENT
. The usage of the respective types are defined along with their declaration.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static 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.static IdType
AGENTGROUP
Identity type of OpenAM agents under the OpenAM agent groups.static IdType
AGENTONLY
Identity type of OpenAM agent only.static IdType
FILTEREDROLE
Identity type of filter role.static IdType
GROUP
Identity type of GROUPstatic IdType
REALM
static IdType
ROLE
Identity type of ROLEstatic IdType
USER
Identity type of USER
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set
canAddMembers()
Returns a set of types of identities that this type can add as members.Set
canBeMemberOf()
Returns a set of types of identities that this type can be a member of.Set
canHaveMembers()
Returns a set of types of identities this type can hav as its' members.boolean
equals(Object type)
String
getName()
Returns the name of this type, for exampleuser
for type User.int
hashCode()
Returns the hash code of the objectString
toString()
-
-
-
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.
-
-
Constructor Detail
-
IdType
protected IdType(String type)
-
-
Method Detail
-
hashCode
public int hashCode()
Returns the hash code of the object
-
getName
public String getName()
Returns the name of this type, for exampleuser
for 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
IdType
which 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
.
-
-