public class EntrustProvider extends IaikProvider
IaikProviderALG_CIPHER_RSA, ALG_CIPHER_RSA_DECRYPT, ALG_CIPHER_RSA_ENCRYPT, ALG_CIPHER_RSA_SIGN, ALG_CIPHER_RSA_VERIFY, ALG_DIGEST_MD5, ALG_DIGEST_SHA, ALG_HMAC_MD5, ALG_HMAC_SHA, ALG_KEY_EC, ALG_KEY_ECDSA, ALG_KEYEX_COFACTOR_ECDH, ALG_KEYEX_DH, ALG_KEYEX_ESDH, ALG_KEYEX_STD_ECDH, ALG_SIGNATURE_MD5RSA, ALG_SIGNATURE_RAWDSA, ALG_SIGNATURE_RAWECDSA, ALG_SIGNATURE_RAWRSA, ALG_SIGNATURE_RAWRSAPSS, ALG_SIGNATURE_SHADSA, CIPHER_DECRYPT, CIPHER_ENCRYPT, CIPHER_NONE, CIPHER_UNWRAP, CIPHER_WRAP, IMPLEMENTATION_NAME_DSA, IMPLEMENTATION_NAME_ECDSA, IMPLEMENTATION_NAME_RSA, providerName, providerNames, random, SIGNATURE_NONE, SIGNATURE_SIGN, SIGNATURE_VERIFY| Constructor and Description |
|---|
EntrustProvider()
Default Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.security.Signature |
getSignature(java.lang.String algorithm,
int mode,
java.security.Key key)
This method returns the desired Signature object.
|
calculateSignatureFromSignedAttributes, checkDomainParameters, decryptKey, generateKeyAgreementKeyPair, getPBEKey, getSecureRandom, verifySignatureFromSignedAttributescalculateSignatureFromHash, convertCipherMode, createSharedKeyEncryptionKey, encryptKey, getAlgorithmParameters, getCipher, getCipher, getCipher, getKeyAgreement, getKeyFactory, getKeyGenerator, getKeyPairGenerator, getMac, getMessageDigest, getMicAlgs, getSecretKeyFactory, getSecurityProvider, getSignature, setSecureRandom, setSecurityProvider, unwrapKey, verifySignatureFromHash, wrapKeyprotected java.security.Signature getSignature(java.lang.String algorithm,
int mode,
java.security.Key key)
throws java.lang.Exception
SIGNATURE_SIGN or
SIGNATURE_VERIFY the signature object is to be
initialized with the provided key in the respective mode.getSignature in class SecurityProvideralgorithm - the name of the Signature algorithmmode - the mode indicating if the engine has to be initializedkey - the key for initializing the Signature enginejava.lang.Exception - if the key is not valid or no Signature engine is
available for the requested algorithm