Package sun.security.jca.GetInstance

Examples of sun.security.jca.GetInstance.Instance


     *
     * @see java.security.Provider
     */
    public static CertPathBuilder getInstance(String algorithm,
            Provider provider) throws NoSuchAlgorithmException {
        Instance instance = GetInstance.getInstance("CertPathBuilder",
            CertPathBuilderSpi.class, algorithm, provider);
        return new CertPathBuilder((CertPathBuilderSpi)instance.impl,
            instance.provider, algorithm);
    }
View Full Code Here


     * @see java.security.Provider
     */
    public static final CertificateFactory getInstance(String type)
            throws CertificateException {
        try {
            Instance instance = GetInstance.getInstance("CertificateFactory",
                CertificateFactorySpi.class, type);
            return new CertificateFactory((CertificateFactorySpi)instance.impl,
                instance.provider, type);
        } catch (NoSuchAlgorithmException e) {
            throw new CertificateException(type + " not found", e);
View Full Code Here

     */
    public static final CertificateFactory getInstance(String type,
            String provider) throws CertificateException,
            NoSuchProviderException {
        try {
            Instance instance = GetInstance.getInstance("CertificateFactory",
                CertificateFactorySpi.class, type, provider);
            return new CertificateFactory((CertificateFactorySpi)instance.impl,
                instance.provider, type);
        } catch (NoSuchAlgorithmException e) {
            throw new CertificateException(type + " not found", e);
View Full Code Here

     * @since 1.4
     */
    public static final CertificateFactory getInstance(String type,
            Provider provider) throws CertificateException {
        try {
            Instance instance = GetInstance.getInstance("CertificateFactory",
                CertificateFactorySpi.class, type, provider);
            return new CertificateFactory((CertificateFactorySpi)instance.impl,
                instance.provider, type);
        } catch (NoSuchAlgorithmException e) {
            throw new CertificateException(type + " not found", e);
View Full Code Here

     */
    public static KeyInfoFactory getInstance(String mechanismType) {
  if (mechanismType == null) {
            throw new NullPointerException("mechanismType cannot be null");
  }
        Instance instance;
        try {
            instance = GetInstance.getInstance
                ("KeyInfoFactory", null, mechanismType);
        } catch (NoSuchAlgorithmException nsae) {
            throw new NoSuchMechanismException(nsae);
View Full Code Here

            throw new NullPointerException("mechanismType cannot be null");
  } else if (provider == null) {
      throw new NullPointerException("provider cannot be null");
  }

        Instance instance;
        try {
            instance = GetInstance.getInstance
                ("KeyInfoFactory", null, mechanismType, provider);
        } catch (NoSuchAlgorithmException nsae) {
            throw new NoSuchMechanismException(nsae);
View Full Code Here

            throw new NullPointerException("provider cannot be null");
  } else if (provider.length() == 0) {
      throw new NoSuchProviderException();
  }

        Instance instance;
        try {
            instance = GetInstance.getInstance
                ("KeyInfoFactory", null, mechanismType, provider);
        } catch (NoSuchAlgorithmException nsae) {
            throw new NoSuchMechanismException(nsae);
View Full Code Here

     */
    public static XMLSignatureFactory getInstance(String mechanismType) {
  if (mechanismType == null) {
      throw new NullPointerException("mechanismType cannot be null");
  }
  Instance instance;
  try {
      instance = GetInstance.getInstance
          ("XMLSignatureFactory", null, mechanismType);
  } catch (NoSuchAlgorithmException nsae) {
      throw new NoSuchMechanismException(nsae);
View Full Code Here

      throw new NullPointerException("mechanismType cannot be null");
  } else if (provider == null) {
      throw new NullPointerException("provider cannot be null");
  }

  Instance instance;
  try {
      instance = GetInstance.getInstance
          ("XMLSignatureFactory", null, mechanismType, provider);
  } catch (NoSuchAlgorithmException nsae) {
      throw new NoSuchMechanismException(nsae);
View Full Code Here

      throw new NullPointerException("provider cannot be null");
  } else if (provider.length() == 0) {
      throw new NoSuchProviderException();
  }

  Instance instance;
  try {
      instance = GetInstance.getInstance
          ("XMLSignatureFactory", null, mechanismType, provider);
  } catch (NoSuchAlgorithmException nsae) {
      throw new NoSuchMechanismException(nsae);
View Full Code Here

TOP

Related Classes of sun.security.jca.GetInstance.Instance

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.