public class TlsKeyTool
extends java.lang.Object
Constructor and Description |
---|
TlsKeyTool() |
Modifier and Type | Method and Description |
---|---|
static void |
exportPrivateKey(java.security.Key key,
java.io.OutputStream os)
Exports a private key.
|
static void |
exportPrivateKey(java.security.Key key,
java.lang.String file_name)
Exports a private key.
|
static void |
exportPrivateKeyBASE64(java.security.Key key,
java.lang.String file_name)
Exports a private key in base64 format.
|
static void |
exportPrivateKeyBASE64(java.security.Key key,
java.io.Writer wr)
Exports a private key in base64 format.
|
static java.security.Key |
importPrivateKey(java.io.InputStream is)
Imports a private key.
|
static java.security.Key |
importPrivateKey(java.lang.String file_name)
Imports a private key.
|
static java.security.Key |
importPrivateKeyBASE64(java.io.BufferedReader rr)
Imports a private key from base64 format.
|
static java.security.Key |
importPrivateKeyBASE64(java.lang.String file_name)
Imports a private key from base64 format.
|
static void |
main(java.lang.String[] args)
Main method.
|
public static java.security.Key importPrivateKey(java.lang.String file_name) throws java.lang.Exception
java.lang.Exception
public static java.security.Key importPrivateKey(java.io.InputStream is) throws java.lang.Exception
java.lang.Exception
public static java.security.Key importPrivateKeyBASE64(java.lang.String file_name) throws java.lang.Exception
java.lang.Exception
public static java.security.Key importPrivateKeyBASE64(java.io.BufferedReader rr) throws java.lang.Exception
java.lang.Exception
public static void exportPrivateKey(java.security.Key key, java.lang.String file_name) throws java.io.IOException
java.io.IOException
public static void exportPrivateKey(java.security.Key key, java.io.OutputStream os) throws java.io.IOException
java.io.IOException
public static void exportPrivateKeyBASE64(java.security.Key key, java.lang.String file_name) throws java.lang.Exception
java.lang.Exception
public static void exportPrivateKeyBASE64(java.security.Key key, java.io.Writer wr) throws java.lang.Exception
java.lang.Exception
public static void main(java.lang.String[] args)