APIdia Launch Partner
Top Description Fields Constructors Methods
javax.crypto

pack-priv final Class JceSecurityManager

extends Object
Class Inheritance
Imports
java.security.*, java.net.*, java.util.*, java.util.concurrent.ConcurrentHashMap, .ConcurrentMap, java.lang.StackWalker.*

The JCE security manager.

The JCE security manager is responsible for determining the maximum allowable cryptographic strength for a given application, for a given algorithm, by consulting the configured jurisdiction policy files and the cryptographic permissions bundled with the application.

Author
Jan Luehe
Since
1.4

Field Summary

Modifier and TypeField and Description
private static final CryptoAllPermission
private static final CryptoPermissions
private static final CryptoPermissions
private static final ConcurrentMap<URL, CryptoPermissions>
private static final CryptoPermissions
pack-priv static final JceSecurityManager
private static final Vector<Class<?>>
pack-priv static final StackWalker

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private static CryptoPermissions
getAppPermissions(URL callerCodeBase)

pack-priv CryptoPermission
getCryptoPermission(String theAlg)

Returns the maximum allowable crypto strength for the given application, for the given algorithm.

pack-priv CryptoPermission
getCryptoPermissionFromURL(URL callerCodeBase, String alg, CryptoPermission defaultPerm)

private CryptoPermission
getDefaultPermission(String alg)

Returns the default permission for the given algorithm.

pack-priv boolean
isCallerTrusted(Class<?> caller, Provider provider)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

allPermback to summary
private static final CryptoAllPermission allPerm
CACHE_NULL_MARKback to summary
private static final CryptoPermissions CACHE_NULL_MARK
defaultPolicyback to summary
private static final CryptoPermissions defaultPolicy
exemptCacheback to summary
private static final ConcurrentMap<URL, CryptoPermissions> exemptCache
exemptPolicyback to summary
private static final CryptoPermissions exemptPolicy
INSTANCEback to summary
pack-priv static final JceSecurityManager INSTANCE
TrustedCallersCacheback to summary
private static final Vector<Class<?>> TrustedCallersCache
WALKERback to summary
pack-priv static final StackWalker WALKER

Constructor Detail

JceSecurityManagerback to summary
private JceSecurityManager()

Method Detail

getAppPermissionsback to summary
private static CryptoPermissions getAppPermissions(URL callerCodeBase)
getCryptoPermissionback to summary
pack-priv CryptoPermission getCryptoPermission(String theAlg)

Returns the maximum allowable crypto strength for the given application, for the given algorithm.

getCryptoPermissionFromURLback to summary
pack-priv CryptoPermission getCryptoPermissionFromURL(URL callerCodeBase, String alg, CryptoPermission defaultPerm)
getDefaultPermissionback to summary
private CryptoPermission getDefaultPermission(String alg)

Returns the default permission for the given algorithm.

isCallerTrustedback to summary
pack-priv boolean isCallerTrusted(Class<?> caller, Provider provider)