public class DefaultDelegateProvider extends DelegateProvider
iaik/pkcs/pkcs11/provider/DefaultDelegateProvider.properties
. If the
configured provider is no valid delegate (e.g. it is also a PKCS#11 provider), this
implementation uses the IAIK provider (name IAIK).Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CIPHER_DELEGATE_PROVIDER
The property entry of the name of the provider that is used for cipher implementations.
|
static java.lang.String |
DEFAULT_PROPERTIES
The properties file that contains the configuration of this delegate provder.
|
static java.lang.String |
FALLBACK_SOFTWARE_PROVIDER
The property entry of the name of the fallback provider.
|
static java.lang.String |
KEY_AGREEMENT_DELEGATE_PROVIDER
The property entry of the name of the provider that is used for key agreement implementations.
|
static java.lang.String |
KEY_FACTORY_DELEGATE_PROVIDER
The property entry of the name of the provider that is used for key factory implementations.
|
static java.lang.String |
MAC_DELEGATE_PROVIDER
The property entry of the name of the provider that is used for MAC implementations.
|
static java.lang.String |
MESSAGE_DIGEST_DELEGATE_PROVIDER
The property entry of the name of the provider that is used for message digest implementations.
|
static java.lang.String |
PARAMETERS_DELEGATE_PROVIDER
The property entry of the name of the provider that is used for algorithm parameter
implementations.
|
static java.lang.String |
PROPERTIES
The properties file that contains the configuration of this delegate provder.
|
static java.lang.String |
SECRET_KEY_FACTORY_DELEGATE_PROVIDER
The property entry of the name of the provider that is used for secret key factory
implementations.
|
static java.lang.String |
SECURE_RANDOM_DELEGATE_PROVIDER
The property entry of the name of the provider that is used for secure random implementations.
|
static java.lang.String |
SIGNATURE_DELEGATE_PROVIDER
The property entry of the name of the provider that is used for signature implementations.
|
defaultProperties_, properties_
Constructor and Description |
---|
DefaultDelegateProvider()
The default constructor.
|
DefaultDelegateProvider(java.util.Properties configuration)
Constructor taking the configuration in form of a properties object.
|
Modifier and Type | Method and Description |
---|---|
javax.crypto.Cipher |
getCipher(java.lang.String algorithmName)
Get a cipher implementation of the given algorithm.
|
javax.crypto.KeyAgreement |
getKeyAgreement(java.lang.String algorithmName)
Get a key agreement implementation of the given algorithm.
|
java.security.KeyFactory |
getKeyFactory(java.lang.String algorithmName)
Get a key factory implementation for the given algorithm.
|
javax.crypto.Mac |
getMac(java.lang.String algorithmName)
Get a MAC implementation of the given algorithm.
|
java.security.MessageDigest |
getMessageDigest(java.lang.String algorithmName)
Get a message digest implementation of the given algorithm.
|
java.security.AlgorithmParameters |
getParameters(java.lang.String algorithmName)
Get a algorithm parameters implementation of the given algorithm.
|
javax.crypto.SecretKeyFactory |
getSecretKeyFactory(java.lang.String algorithmName)
Get a key factory implementation for the given algorithm.
|
java.security.SecureRandom |
getSecureRandom(java.lang.String algorithmName)
Get a secure random implementation for the given algorithm.
|
java.security.Signature |
getSignature(java.lang.String algorithmName)
Get a signature implementation of the given algorithm.
|
addProperties, getProperties, propertiesChanged, setProperties
public static final java.lang.String DEFAULT_PROPERTIES
public static final java.lang.String PROPERTIES
public static final java.lang.String FALLBACK_SOFTWARE_PROVIDER
public static final java.lang.String MESSAGE_DIGEST_DELEGATE_PROVIDER
public static final java.lang.String CIPHER_DELEGATE_PROVIDER
public static final java.lang.String PARAMETERS_DELEGATE_PROVIDER
public static final java.lang.String KEY_AGREEMENT_DELEGATE_PROVIDER
public static final java.lang.String KEY_FACTORY_DELEGATE_PROVIDER
public static final java.lang.String MAC_DELEGATE_PROVIDER
public static final java.lang.String SECRET_KEY_FACTORY_DELEGATE_PROVIDER
public static final java.lang.String SECURE_RANDOM_DELEGATE_PROVIDER
public static final java.lang.String SIGNATURE_DELEGATE_PROVIDER
public DefaultDelegateProvider()
public DefaultDelegateProvider(java.util.Properties configuration)
configuration
- The properties providing the configuration.public javax.crypto.Cipher getCipher(java.lang.String algorithmName)
getCipher
in class DelegateProvider
algorithmName
- The algorithm name.public java.security.AlgorithmParameters getParameters(java.lang.String algorithmName)
getParameters
in class DelegateProvider
algorithmName
- The algorithm name.public javax.crypto.KeyAgreement getKeyAgreement(java.lang.String algorithmName)
getKeyAgreement
in class DelegateProvider
algorithmName
- The algorithm name.public java.security.KeyFactory getKeyFactory(java.lang.String algorithmName)
getKeyFactory
in class DelegateProvider
algorithmName
- The name of the requested algorithm.public javax.crypto.Mac getMac(java.lang.String algorithmName)
getMac
in class DelegateProvider
algorithmName
- The algorithm name.public java.security.MessageDigest getMessageDigest(java.lang.String algorithmName)
getMessageDigest
in class DelegateProvider
algorithmName
- The algorithm name.public javax.crypto.SecretKeyFactory getSecretKeyFactory(java.lang.String algorithmName)
getSecretKeyFactory
in class DelegateProvider
algorithmName
- The name of the requested algorithm.public java.security.SecureRandom getSecureRandom(java.lang.String algorithmName)
getSecureRandom
in class DelegateProvider
algorithmName
- The name of the requested algorithm or null
to get the default.null
if there is no appropriate
implementation available.public java.security.Signature getSignature(java.lang.String algorithmName)
getSignature
in class DelegateProvider
algorithmName
- The algorithm name.IAIK JavaSecurity Website https://jce.iaik.tugraz.at/
IAIK at Graz University of Technology, Austria, Europe
Copyright 2001-2023 IAIK, Graz University of Technology, Inffeldgasse 16a, 8010 Graz, Austria. All Rights Reserved. Version 1.9.4