public class Crypto
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PROVIDER_GNU |
static java.lang.String |
PROVIDER_SUN |
| Constructor and Description |
|---|
Crypto() |
| Modifier and Type | Method and Description |
|---|---|
static BufferedCipher |
getDecryptor(CipherAlg aCipherAlg) |
static Digester |
getDigester(DigestAlg aDigestAlg) |
static BufferedCipher |
getEncryptor(CipherAlg aCipherAlg) |
static KeyAgreement |
getKeyAgreement(KeyAgreementAlg aKeyAgreementAlg) |
static KeyFactory |
getKeyFactory() |
static KeyPairGenerator |
getKeyPairGenerator(AsymmetricAlg aAsymmetricAlg) |
static MAC |
getMAC(MACAlg aMACAlg) |
static CryptoProvider |
getProvider() |
static RandomGenerator |
getRandomGenerator() |
static Signer |
getSigner(SignatureAlg aSignatureAlg) |
static Wrapper |
getUnwrapper(WrapAlg aWrapAlg) |
static Verifier |
getVerifier(SignatureAlg aSignatureAlg) |
static Wrapper |
getWrapper(WrapAlg aWrapAlg) |
static boolean |
isFipsMode() |
static void |
setProvider(CryptoProvider aProvider)
Set Crypto provider with crypto provider
|
static void |
setProvider(java.lang.String aFullyQualifiedClassName)
Set Crypto provider with Fully Qualified ClassName
|
static void |
setThreadCryptoProvider(CryptoProvider cryptoProvider) |
public static final java.lang.String PROVIDER_SUN
public static final java.lang.String PROVIDER_GNU
public static void setProvider(CryptoProvider aProvider)
aProvider - public static void setProvider(java.lang.String aFullyQualifiedClassName)
throws CryptoException
aFullyQualifiedClassName - CryptoExceptionpublic static void setThreadCryptoProvider(CryptoProvider cryptoProvider)
public static CryptoProvider getProvider()
public static boolean isFipsMode()
public static Digester getDigester(DigestAlg aDigestAlg) throws CryptoException
CryptoExceptionpublic static BufferedCipher getEncryptor(CipherAlg aCipherAlg) throws CryptoException
CryptoExceptionpublic static BufferedCipher getDecryptor(CipherAlg aCipherAlg) throws CryptoException
CryptoExceptionpublic static Signer getSigner(SignatureAlg aSignatureAlg) throws CryptoException
CryptoExceptionpublic static Verifier getVerifier(SignatureAlg aSignatureAlg) throws CryptoException
CryptoExceptionpublic static MAC getMAC(MACAlg aMACAlg) throws CryptoException
CryptoExceptionpublic static Wrapper getWrapper(WrapAlg aWrapAlg) throws CryptoException
CryptoExceptionpublic static Wrapper getUnwrapper(WrapAlg aWrapAlg) throws CryptoException
CryptoExceptionpublic static KeyFactory getKeyFactory() throws CryptoException
CryptoExceptionpublic static KeyAgreement getKeyAgreement(KeyAgreementAlg aKeyAgreementAlg) throws CryptoException
CryptoExceptionpublic static KeyPairGenerator getKeyPairGenerator(AsymmetricAlg aAsymmetricAlg) throws CryptoException
CryptoExceptionpublic static RandomGenerator getRandomGenerator()
Copyright © 2025. All rights reserved.