com.maverick.ssh.components.jce
Class JCEProvider

java.lang.Object
  extended bycom.maverick.ssh.components.jce.JCEProvider
All Implemented Interfaces:
JCEAlgorithms

public class JCEProvider
extends java.lang.Object
implements JCEAlgorithms


Field Summary
 
Fields inherited from interface com.maverick.ssh.components.jce.JCEAlgorithms
JCE_AESCBCNOPADDING, JCE_AESCTRNOPADDING, JCE_BLOWFISHCBCNOPADDING, JCE_DESCBCNOPADDING, JCE_DH, JCE_DSA, JCE_HMACMD5, JCE_HMACSHA1, JCE_MD5, JCE_RSA, JCE_RSANONEPKCS1PADDING, JCE_SHA1, JCE_SHA1PRNG, JCE_SHA1WithDSA, JCE_SHA1WithRSA, JCE_X509
 
Constructor Summary
JCEProvider()
           
 
Method Summary
static java.security.Provider getProviderForAlgorithm(java.lang.String jceAlgorithm)
          Get the provider for a specific algorithm.
static java.security.SecureRandom getSecureRandom()
          Get the secure random implementation for the API.
static java.lang.String getSecureRandomAlgorithm()
          Get the algorithm used for secure random number generation.
static void initializeDefaultProvider(java.security.Provider provider)
          Initialize the default JCE provider used by the API.
static void initializeProviderForAlgorithm(java.lang.String jceAlgorithm, java.security.Provider provider)
          Initialize a provider for a specific algorithm.
static void setSecureRandomAlgorithm(java.lang.String secureRandomAlgorithm)
          Set the algorithm used for secure random number generation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JCEProvider

public JCEProvider()
Method Detail

initializeDefaultProvider

public static void initializeDefaultProvider(java.security.Provider provider)
Initialize the default JCE provider used by the API.

Parameters:
provider -

initializeProviderForAlgorithm

public static void initializeProviderForAlgorithm(java.lang.String jceAlgorithm,
                                                  java.security.Provider provider)
Initialize a provider for a specific algorithm.

Parameters:
jceAlgorithm -
provider -

getSecureRandomAlgorithm

public static java.lang.String getSecureRandomAlgorithm()
Get the algorithm used for secure random number generation.

Returns:
String

setSecureRandomAlgorithm

public static void setSecureRandomAlgorithm(java.lang.String secureRandomAlgorithm)
Set the algorithm used for secure random number generation.

Parameters:
secureRandomAlgorithm -

getProviderForAlgorithm

public static java.security.Provider getProviderForAlgorithm(java.lang.String jceAlgorithm)
Get the provider for a specific algorithm.

Parameters:
jceAlgorithm -
Returns:
Provider

getSecureRandom

public static java.security.SecureRandom getSecureRandom()
                                                  throws java.security.NoSuchAlgorithmException
Get the secure random implementation for the API.

Returns:
SecureRandom
Throws:
java.security.NoSuchAlgorithmException


Copyright © 2003-2008 SSHTools LTD. All Rights Reserved.