Java Key Create getKeyFactory(String keyType)

Here you can find the source of getKeyFactory(String keyType)

Description

get Key Factory

License

Open Source License

Declaration

static private KeyFactory getKeyFactory(String keyType) throws NoSuchAlgorithmException 

Method Source Code

//package com.java2s;
/*//from   w w  w  . j a va2s.  c  o m
 * Copyright 2014-2017.
 * Distributed under the terms of the GPLv3 License.
 *
 * Authors:
 *      Clemens Zeidler <czei002@aucklanduni.ac.nz>
 */

import java.security.*;

public class Main {
    static private KeyFactory getKeyFactory(String keyType) throws NoSuchAlgorithmException {
        if (keyType.startsWith("EC")) {
            return KeyFactory.getInstance("EC");
        } else {
            return KeyFactory.getInstance(keyType);
        }
    }
}

Related

  1. getKeyFactory()
  2. getKeyFactory()
  3. getKeyFactory()
  4. getKeyFactory(final String algorithm)
  5. getKeyFactory(final String algorithm)
  6. getKeyFromFile(String _sFilename, String _sPassword)
  7. getKeyFromFile(String keyFile)
  8. getKeyGenerator(String algorithm)
  9. getKeyKeyManagerFactory(InputStream keyStore, String password, String algorithm, String keyStoreType)