Class ProviderConfigurationPermission
- java.lang.Object
-
- java.security.Permission
-
- java.security.BasicPermission
-
- org.bouncycastle.jcajce.provider.config.ProviderConfigurationPermission
-
- All Implemented Interfaces:
java.io.Serializable
,java.security.Guard
public class ProviderConfigurationPermission extends java.security.BasicPermission
A permission class to define what can be done with the ConfigurableProvider interface.Available permissions are "threadLocalEcImplicitlyCa" and "ecImplicitlyCa" which allow the setting of the thread local and global ecImplicitlyCa parameters respectively.
Examples:
- ProviderConfigurationPermission("BC"); // enable all permissions
- ProviderConfigurationPermission("BC", "threadLocalEcImplicitlyCa"); // enable thread local only
- ProviderConfigurationPermission("BC", "ecImplicitlyCa"); // enable global setting only
- ProviderConfigurationPermission("BC", "threadLocalEcImplicitlyCa, ecImplicitlyCa"); // enable both explicitly
Note: permission checks are only enforced if a security manager is present.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ProviderConfigurationPermission(java.lang.String name)
ProviderConfigurationPermission(java.lang.String name, java.lang.String actions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getActions()
int
hashCode()
boolean
implies(java.security.Permission permission)
-
-
-
Method Detail
-
getActions
public java.lang.String getActions()
- Overrides:
getActions
in classjava.security.BasicPermission
-
implies
public boolean implies(java.security.Permission permission)
- Overrides:
implies
in classjava.security.BasicPermission
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.security.BasicPermission
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.security.BasicPermission
-
-