PrincipalType Class

public final class PrincipalType
extends ExpandableStringEnum<PrincipalType>

The type of a role Assignment.

Field Summary

Modifier and Type Field and Description
static final PrincipalType DIRECTORY_ROLE

Static value DirectoryRole for PrincipalType.

static final PrincipalType EVERYONE

Static value Everyone for PrincipalType.

static final PrincipalType GROUP

Static value Group for PrincipalType.

static final PrincipalType NONE

Static value None for PrincipalType.

static final PrincipalType SERVICE_PRINCIPAL

Static value ServicePrincipal for PrincipalType.

static final PrincipalType UNKNOWN

Static value Unknown for PrincipalType.

static final PrincipalType USER

Static value User for PrincipalType.

Constructor Summary

Constructor Description
PrincipalType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of PrincipalType value.

Method Summary

Modifier and Type Method and Description
static PrincipalType fromString(String name)

Creates or finds a PrincipalType from its string representation.

static Collection<PrincipalType> values()

Gets known PrincipalType values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

DIRECTORY_ROLE

public static final PrincipalType DIRECTORY_ROLE

Static value DirectoryRole for PrincipalType.

EVERYONE

public static final PrincipalType EVERYONE

Static value Everyone for PrincipalType.

GROUP

public static final PrincipalType GROUP

Static value Group for PrincipalType.

NONE

public static final PrincipalType NONE

Static value None for PrincipalType.

SERVICE_PRINCIPAL

public static final PrincipalType SERVICE_PRINCIPAL

Static value ServicePrincipal for PrincipalType.

UNKNOWN

public static final PrincipalType UNKNOWN

Static value Unknown for PrincipalType.

USER

public static final PrincipalType USER

Static value User for PrincipalType.

Constructor Details

PrincipalType

@Deprecated
public PrincipalType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of PrincipalType value.

Method Details

fromString

public static PrincipalType fromString(String name)

Creates or finds a PrincipalType from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding PrincipalType.

values

public static Collection<PrincipalType> values()

Gets known PrincipalType values.

Returns:

known PrincipalType values.

Applies to