org.apache.sshd.common.util
Class SecurityUtils
java.lang.Object
org.apache.sshd.common.util.SecurityUtils
public class SecurityUtils
- extends Object
TODO Add javadoc
- Author:
- Apache MINA SSHD Project
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BOUNCY_CASTLE
public static final String BOUNCY_CASTLE
- See Also:
- Constant Field Values
SecurityUtils
public SecurityUtils()
setSecurityProvider
public static void setSecurityProvider(String securityProvider)
setRegisterBouncyCastle
public static void setRegisterBouncyCastle(boolean registerBouncyCastle)
getSecurityProvider
public static String getSecurityProvider()
isBouncyCastleRegistered
public static boolean isBouncyCastleRegistered()
getKeyFactory
public static KeyFactory getKeyFactory(String algorithm)
throws NoSuchAlgorithmException,
NoSuchProviderException
- Throws:
NoSuchAlgorithmException
NoSuchProviderException
getCipher
public static Cipher getCipher(String transformation)
throws NoSuchAlgorithmException,
NoSuchPaddingException,
NoSuchProviderException
- Throws:
NoSuchAlgorithmException
NoSuchPaddingException
NoSuchProviderException
getMessageDigest
public static MessageDigest getMessageDigest(String algorithm)
throws NoSuchAlgorithmException,
NoSuchProviderException
- Throws:
NoSuchAlgorithmException
NoSuchProviderException
getKeyPairGenerator
public static KeyPairGenerator getKeyPairGenerator(String algorithm)
throws NoSuchAlgorithmException,
NoSuchProviderException
- Throws:
NoSuchAlgorithmException
NoSuchProviderException
getKeyAgreement
public static KeyAgreement getKeyAgreement(String algorithm)
throws NoSuchAlgorithmException,
NoSuchProviderException
- Throws:
NoSuchAlgorithmException
NoSuchProviderException
getMac
public static Mac getMac(String algorithm)
throws NoSuchAlgorithmException,
NoSuchProviderException
- Throws:
NoSuchAlgorithmException
NoSuchProviderException
getSignature
public static Signature getSignature(String algorithm)
throws NoSuchAlgorithmException,
NoSuchProviderException
- Throws:
NoSuchAlgorithmException
NoSuchProviderException
Copyright © 2008-2012 Apache Software Foundation. All Rights Reserved.