public class NativeSecurityProvider extends Object implements SecurityProvider
| Modifier and Type | Field and Description |
|---|---|
static int |
MESSAGE_DIGEST_ALGORITHM_NAME_SIZE
Length of the string to provide for the message digest algorithm name.
|
| Constructor and Description |
|---|
NativeSecurityProvider() |
| Modifier and Type | Method and Description |
|---|---|
CipherSpi |
getCipherSpi(String transformation)
Returns a
CipherSpi for the given transformation or null if no implementation is available. |
KeyFactorySpi |
getKeyFactorySpi(String algorithm)
Returns a
KeyFactorySpi for the given algorithm or null if no implementation is available. |
KeyPairGeneratorSpi |
getKeyPairGeneratorSpi(String algorithm)
KeyPairGeneratorSpi service provider. |
MacSpi |
getMacSpi(String algorithm)
Returns a
MacSpi for the given algorithm or null if no implementation is available. |
MessageDigestSpi |
getMessageDigestSpi(String algorithm)
Returns a
MessageDigestSpi for the given algorithm or null if no implementation is available. |
CipherSpi |
getNativeCipher(String transformation) |
SecretKeyFactorySpi |
getSecretKeyFactorySpi(String algorithm) |
SecureRandomSpi |
getSecureRandomSpi()
Returns a
SecureRandomSpi or null if no implementation is available. |
SignatureSpi |
getSignatureSpi(String algorithm)
Returns a
SignatureSpi for the given algorithm or null if no implementation is available. |
public static final int MESSAGE_DIGEST_ALGORITHM_NAME_SIZE
public CipherSpi getCipherSpi(String transformation) throws NoSuchAlgorithmException, NoSuchPaddingException
SecurityProviderCipherSpi for the given transformation or null if no implementation is available.getCipherSpi in interface SecurityProviderNoSuchAlgorithmExceptionNoSuchPaddingExceptionpublic KeyFactorySpi getKeyFactorySpi(String algorithm)
SecurityProviderKeyFactorySpi for the given algorithm or null if no implementation is available.getKeyFactorySpi in interface SecurityProviderpublic KeyPairGeneratorSpi getKeyPairGeneratorSpi(String algorithm) throws NoSuchAlgorithmException
SecurityProviderKeyPairGeneratorSpi service provider.getKeyPairGeneratorSpi in interface SecurityProvideralgorithm - the standard string name of the algorithm.KeyPairGeneratorSpi or null if no implementation is available for this service.NoSuchAlgorithmExceptionpublic MacSpi getMacSpi(String algorithm)
SecurityProviderMacSpi for the given algorithm or null if no implementation is available.getMacSpi in interface SecurityProviderpublic MessageDigestSpi getMessageDigestSpi(String algorithm)
SecurityProviderMessageDigestSpi for the given algorithm or null if no implementation is available.getMessageDigestSpi in interface SecurityProviderpublic SecretKeyFactorySpi getSecretKeyFactorySpi(String algorithm) throws NoSuchAlgorithmException
getSecretKeyFactorySpi in interface SecurityProviderSecretKeyFactorySpi for the given algorithm.NoSuchAlgorithmException - if no implementation is available.public SecureRandomSpi getSecureRandomSpi()
SecurityProviderSecureRandomSpi or null if no implementation is available.getSecureRandomSpi in interface SecurityProviderpublic SignatureSpi getSignatureSpi(String algorithm)
SecurityProviderSignatureSpi for the given algorithm or null if no implementation is available.getSignatureSpi in interface SecurityProvider