public class SecurityUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
BOUNCY_CASTLE |
Constructor and Description |
---|
SecurityUtils() |
Modifier and Type | Method and Description |
---|---|
static Cipher |
getCipher(String transformation) |
static KeyAgreement |
getKeyAgreement(String algorithm) |
static KeyFactory |
getKeyFactory(String algorithm) |
static KeyPairGenerator |
getKeyPairGenerator(String algorithm) |
static Mac |
getMac(String algorithm) |
static MessageDigest |
getMessageDigest(String algorithm) |
static String |
getSecurityProvider() |
static Signature |
getSignature(String algorithm) |
static boolean |
hasEcc() |
static boolean |
isBouncyCastleRegistered() |
static void |
setRegisterBouncyCastle(boolean registerBouncyCastle) |
static void |
setSecurityProvider(String securityProvider) |
public static final String BOUNCY_CASTLE
public static boolean hasEcc()
public static void setSecurityProvider(String securityProvider)
public static void setRegisterBouncyCastle(boolean registerBouncyCastle)
public static String getSecurityProvider()
public static boolean isBouncyCastleRegistered()
public static KeyFactory getKeyFactory(String algorithm) throws NoSuchAlgorithmException, NoSuchProviderException
public static Cipher getCipher(String transformation) throws NoSuchAlgorithmException, NoSuchPaddingException, NoSuchProviderException
public static MessageDigest getMessageDigest(String algorithm) throws NoSuchAlgorithmException, NoSuchProviderException
public static KeyPairGenerator getKeyPairGenerator(String algorithm) throws NoSuchAlgorithmException, NoSuchProviderException
public static KeyAgreement getKeyAgreement(String algorithm) throws NoSuchAlgorithmException, NoSuchProviderException
public static Mac getMac(String algorithm) throws NoSuchAlgorithmException, NoSuchProviderException
public static Signature getSignature(String algorithm) throws NoSuchAlgorithmException, NoSuchProviderException
Copyright © 2008-2014 The Apache Software Foundation. All Rights Reserved.