org.apache.sshd.common.util
Class SecurityUtils

java.lang.Object
  extended by org.apache.sshd.common.util.SecurityUtils

public class SecurityUtils
extends Object

TODO Add javadoc

Author:
Apache MINA SSHD Project

Field Summary
static String BOUNCY_CASTLE
           
 
Constructor Summary
SecurityUtils()
           
 
Method Summary
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 isBouncyCastleRegistered()
           
static void setRegisterBouncyCastle(boolean registerBouncyCastle)
           
static void setSecurityProvider(String securityProvider)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BOUNCY_CASTLE

public static final String BOUNCY_CASTLE
See Also:
Constant Field Values
Constructor Detail

SecurityUtils

public SecurityUtils()
Method Detail

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.