com.digt.trusted.jce.provider
Class CertUtil

java.lang.Object
  extended by com.digt.trusted.jce.provider.CertUtil

public class CertUtil
extends java.lang.Object


Nested Class Summary
static class CertUtil.Implementation
           
 
Constructor Summary
CertUtil()
           
 
Method Summary
static CertUtil.Implementation getImplementation(java.lang.String baseName, java.lang.String algorithm, java.security.Provider prov)
          see if we can find an algorithm (or its alias and what it represents) in the property table for the given provider.
static CertUtil.Implementation getImplementation(java.lang.String baseName, java.lang.String algorithm, java.security.Provider prov, java.lang.Class[] ctorparamtype, java.lang.Object[] ctorparam)
          see if we can find an algorithm (or its alias and what it represents) in the property table for the given provider.
static CertUtil.Implementation getImplementation(java.lang.String baseName, java.lang.String algorithm, java.lang.String provider)
          return an implementation for a given algorithm/provider.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CertUtil

public CertUtil()
Method Detail

getImplementation

public static CertUtil.Implementation getImplementation(java.lang.String baseName,
                                                        java.lang.String algorithm,
                                                        java.security.Provider prov)
                                                 throws java.security.NoSuchProviderException
see if we can find an algorithm (or its alias and what it represents) in the property table for the given provider.

Returns:
null if no algorithm found, an Implementation if it is.
Throws:
java.security.NoSuchProviderException

getImplementation

public static CertUtil.Implementation getImplementation(java.lang.String baseName,
                                                        java.lang.String algorithm,
                                                        java.lang.String provider)
                                                 throws java.security.NoSuchProviderException
return an implementation for a given algorithm/provider. If the provider is null, we grab the first avalaible who has the required algorithm.

Returns:
null if no algorithm found, an Implementation if it is.
Throws:
java.security.NoSuchProviderException - if a provider is specified and not found.

getImplementation

public static CertUtil.Implementation getImplementation(java.lang.String baseName,
                                                        java.lang.String algorithm,
                                                        java.security.Provider prov,
                                                        java.lang.Class[] ctorparamtype,
                                                        java.lang.Object[] ctorparam)
                                                 throws java.security.InvalidAlgorithmParameterException
see if we can find an algorithm (or its alias and what it represents) in the property table for the given provider.

Returns:
null if no algorithm found, an Implementation if it is.
Throws:
java.security.InvalidAlgorithmParameterException