Class KeyVaultRoleScope
- java.lang.Object
-
- com.azure.core.util.ExpandableStringEnum<KeyVaultRoleScope>
-
- com.azure.security.keyvault.administration.models.KeyVaultRoleScope
-
public final class KeyVaultRoleScope extends com.azure.core.util.ExpandableStringEnum<KeyVaultRoleScope>
A class that defines the scope of a role.
-
-
Field Summary
Fields Modifier and Type Field Description static KeyVaultRoleScope
GLOBAL
Global role scope.static KeyVaultRoleScope
KEYS
Keys role scope.
-
Constructor Summary
Constructors Constructor Description KeyVaultRoleScope()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static KeyVaultRoleScope
fromString(String name)
Creates or finds aKeyVaultRoleScope
from its string representation.static KeyVaultRoleScope
fromUrl(String url)
Creates or finds aKeyVaultRoleScope
from its string representation.static KeyVaultRoleScope
fromUrl(URL url)
Creates or finds aKeyVaultRoleScope
from its string representation.
-
-
-
Field Detail
-
GLOBAL
public static final KeyVaultRoleScope GLOBAL
Global role scope.
-
KEYS
public static final KeyVaultRoleScope KEYS
Keys role scope.
-
-
Method Detail
-
fromString
public static KeyVaultRoleScope fromString(String name)
Creates or finds aKeyVaultRoleScope
from its string representation.- Parameters:
name
- A name to look for.- Returns:
- The corresponding
KeyVaultRoleScope
.
-
fromUrl
public static KeyVaultRoleScope fromUrl(String url)
Creates or finds aKeyVaultRoleScope
from its string representation.- Parameters:
url
- A string representing a URL containing the name of the scope to look for.- Returns:
- The corresponding
KeyVaultRoleScope
. - Throws:
IllegalArgumentException
- If the givenURL String
is malformed.
-
fromUrl
public static KeyVaultRoleScope fromUrl(URL url)
Creates or finds aKeyVaultRoleScope
from its string representation.- Parameters:
url
- A URL containing the name of the scope to look for.- Returns:
- The corresponding
KeyVaultRoleScope
.
-
-