Java Key Create getKey(KeyStore keystore, String alias, String password)

Here you can find the source of getKey(KeyStore keystore, String alias, String password)

Description

Get a private key from the keystore by name and password.

License

Open Source License

Declaration

public static Key getKey(KeyStore keystore, String alias, String password) throws GeneralSecurityException 

Method Source Code


//package com.java2s;

import java.security.*;

public class Main {
    /**//from  w ww. j a va2 s .  c o  m
    Get a private key from the keystore by name and password.
    */
    public static Key getKey(KeyStore keystore, String alias, String password) throws GeneralSecurityException {
        return keystore.getKey(alias, password.toCharArray());
    }
}

Related

  1. getKey()
  2. getKey(byte[] arrayBytesTemp)
  3. getKey(byte[] keyData)
  4. getKey(InputStream is)
  5. getKey(int size)
  6. getKey(KeyStore keyStore, String password, String orgName)
  7. getKey(KeyStore ks, String alias, String pass)
  8. getKey(Object obj)
  9. getKey(String keyString)