Class CredentialStorePermission
- java.lang.Object
-
- java.security.Permission
-
- org.wildfly.security.permission.AbstractPermission<This>
-
- org.wildfly.security.permission.AbstractNamedPermission<This>
-
- org.wildfly.security.permission.AbstractNameOnlyPermission<This>
-
- org.wildfly.security.permission.AbstractNameSetOnlyPermission<CredentialStorePermission>
-
- org.wildfly.security.credential.store.CredentialStorePermission
-
- All Implemented Interfaces:
Serializable
,Guard
,PermissionVerifier
public class CredentialStorePermission extends AbstractNameSetOnlyPermission<CredentialStorePermission>
Credential Store API specific permission. It can have following target names:loadCredentialStore
retrieveCredential
modifyCredentialStore
- Author:
- Peter Skopek.
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static CredentialStorePermission
allPermission
static CredentialStorePermission
LOAD_CREDENTIAL_STORE
Load credential store permission.private static StringMapping<CredentialStorePermission>
mapping
static CredentialStorePermission
MODIFY_CREDENTIAL_STORE
Store or delete credential (password) permission (from credential store).private static StringEnumeration
names
static CredentialStorePermission
RETRIEVE_CREDENTIAL
Retrieve credential (password) permission (from credential store).private static long
serialVersionUID
-
Fields inherited from interface org.wildfly.security.permission.PermissionVerifier
ALL, NONE
-
-
Constructor Summary
Constructors Constructor Description CredentialStorePermission(String name)
Creates newCredentialStorePermission
CredentialStorePermission(String name, String actions)
Creates newCredentialStorePermission
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CredentialStorePermission
forName(String name)
Get the permission with the given name.CredentialStorePermission
withName(String name)
Create a new permission which is identical to this one, except with a newname
.-
Methods inherited from class org.wildfly.security.permission.AbstractNameSetOnlyPermission
impliesName, nameEquals, nameHashCode, newPermissionCollection
-
Methods inherited from class org.wildfly.security.permission.AbstractNamedPermission
equals, hashCode, implies, impliesName, impliesName, nameEquals, nameEquals
-
Methods inherited from class org.wildfly.security.permission.AbstractPermission
equals, getActions, implies, requireEmptyActions
-
Methods inherited from class java.security.Permission
checkGuard, getName, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.wildfly.security.permission.PermissionVerifier
and, checkPermission, not, or, toPermissionCollection, unless, xor
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
names
private static final StringEnumeration names
-
mapping
private static final StringMapping<CredentialStorePermission> mapping
-
LOAD_CREDENTIAL_STORE
public static final CredentialStorePermission LOAD_CREDENTIAL_STORE
Load credential store permission.
-
RETRIEVE_CREDENTIAL
public static final CredentialStorePermission RETRIEVE_CREDENTIAL
Retrieve credential (password) permission (from credential store).
-
MODIFY_CREDENTIAL_STORE
public static final CredentialStorePermission MODIFY_CREDENTIAL_STORE
Store or delete credential (password) permission (from credential store).
-
allPermission
private static final CredentialStorePermission allPermission
-
-
Constructor Detail
-
CredentialStorePermission
public CredentialStorePermission(String name)
Creates newCredentialStorePermission
- Parameters:
name
- of newCredentialStorePermission
-
-
Method Detail
-
withName
public CredentialStorePermission withName(String name)
Description copied from class:AbstractNamedPermission
Create a new permission which is identical to this one, except with a newname
.- Specified by:
withName
in classAbstractNamedPermission<CredentialStorePermission>
- Parameters:
name
- the name to use (must not benull
)- Returns:
- the new permission
-
forName
public static CredentialStorePermission forName(String name)
Get the permission with the given name.- Parameters:
name
- the name (must not benull
)- Returns:
- the permission (not
null
) - Throws:
IllegalArgumentException
- if the name is not valid
-
-