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
- CryptoException
public static void setThreadCryptoProvider(CryptoProvider cryptoProvider)
public static CryptoProvider getProvider()
public static boolean isFipsMode()
public static Digester getDigester(DigestAlg aDigestAlg) throws CryptoException
CryptoException
public static BufferedCipher getEncryptor(CipherAlg aCipherAlg) throws CryptoException
CryptoException
public static BufferedCipher getDecryptor(CipherAlg aCipherAlg) throws CryptoException
CryptoException
public static Signer getSigner(SignatureAlg aSignatureAlg) throws CryptoException
CryptoException
public static Verifier getVerifier(SignatureAlg aSignatureAlg) throws CryptoException
CryptoException
public static MAC getMAC(MACAlg aMACAlg) throws CryptoException
CryptoException
public static Wrapper getWrapper(WrapAlg aWrapAlg) throws CryptoException
CryptoException
public static Wrapper getUnwrapper(WrapAlg aWrapAlg) throws CryptoException
CryptoException
public static KeyFactory getKeyFactory() throws CryptoException
CryptoException
public static KeyAgreement getKeyAgreement(KeyAgreementAlg aKeyAgreementAlg) throws CryptoException
CryptoException
public static KeyPairGenerator getKeyPairGenerator(AsymmetricAlg aAsymmetricAlg) throws CryptoException
CryptoException
public static RandomGenerator getRandomGenerator()
Copyright © 2025. All rights reserved.