public final class KeystoreHelper
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.security.KeyStore |
parseKeyJKS(java.io.File file)
Loads key material from a JKS-encoded file
|
static java.security.KeyStore |
parseKeyJKS(java.io.InputStream file)
Loads key material from a JKS-encoded InputStream
|
static java.security.KeyStore |
parseKeyP12(java.io.File file)
Loads key material from a PKCS12-encoded file
|
static java.security.KeyStore |
parseKeyP12(java.io.InputStream file)
Loads key material from a PKCS12-encoded InputStream
|
static java.security.KeyStore |
parseKeyPEM(java.io.File file)
Loads key material from a PEM-encoded file
|
static java.security.KeyStore |
parseKeyPEM(java.io.Reader reader)
Loads key material from a PEM-encoded Reader
|
static java.security.KeyStore |
parseTrustJKS(java.io.File file)
Loads trust material from a JKS-encoded file
|
static java.security.KeyStore |
parseTrustJKS(java.io.InputStream file)
Loads trust material from a JKS-encoded InputStream
|
static java.security.KeyStore |
parseTrustP12(java.io.File file)
Loads trust material from a PKCS12-encoded file
|
static java.security.KeyStore |
parseTrustP12(java.io.InputStream file)
Loads trust material from a PKCS12-encoded InputStream
|
static java.security.KeyStore |
parseTrustPEM(java.io.File file)
Loads trust material from a PEM-encoded file
|
static java.security.KeyStore |
parseTrustPEM(java.io.Reader reader)
Loads key/trust material from a PEM-encoded Reader
|
public static java.security.KeyStore parseKeyPEM(java.io.File file)
throws java.security.GeneralSecurityException
file - the source of the key/trust materialjava.security.GeneralSecurityException - if there is an IO problem or if the key/trust material is corruptpublic static java.security.KeyStore parseTrustPEM(java.io.File file)
throws java.security.GeneralSecurityException
file - the source of the key/trust materialjava.security.GeneralSecurityException - if there is an IO problem or if the key/trust material is corruptpublic static java.security.KeyStore parseKeyPEM(java.io.Reader reader)
throws java.security.GeneralSecurityException
file - the source of the key/trust materialjava.security.GeneralSecurityException - if there is an IO problem or if the key/trust material is corruptpublic static java.security.KeyStore parseTrustPEM(java.io.Reader reader)
throws java.security.GeneralSecurityException
file - the source of the key/trust materialjava.security.GeneralSecurityException - if there is an IO problem or if the key/trust material is corruptpublic static java.security.KeyStore parseKeyJKS(java.io.File file)
throws java.security.GeneralSecurityException
file - the source of the key/trust materialjava.security.GeneralSecurityException - if there is an IO problem or if the key/trust material is corruptpublic static java.security.KeyStore parseTrustJKS(java.io.File file)
throws java.security.GeneralSecurityException
file - the source of the key/trust materialjava.security.GeneralSecurityException - if there is an IO problem or if the key/trust material is corruptpublic static java.security.KeyStore parseKeyJKS(java.io.InputStream file)
throws java.security.GeneralSecurityException
file - the source of the key/trust materialjava.security.GeneralSecurityException - if there is an IO problem or if the key/trust material is corruptpublic static java.security.KeyStore parseTrustJKS(java.io.InputStream file)
throws java.security.GeneralSecurityException
file - the source of the key/trust materialjava.security.GeneralSecurityException - if there is an IO problem or if the key/trust material is corruptpublic static java.security.KeyStore parseKeyP12(java.io.File file)
throws java.security.GeneralSecurityException
file - the source of the key/trust materialjava.security.GeneralSecurityException - if there is an IO problem or if the key/trust material is corruptpublic static java.security.KeyStore parseTrustP12(java.io.File file)
throws java.security.GeneralSecurityException
file - the source of the key/trust materialjava.security.GeneralSecurityException - if there is an IO problem or if the key/trust material is corruptpublic static java.security.KeyStore parseKeyP12(java.io.InputStream file)
throws java.security.GeneralSecurityException
file - the source of the key/trust materialjava.security.GeneralSecurityException - if there is an IO problem or if the key/trust material is corruptpublic static java.security.KeyStore parseTrustP12(java.io.InputStream file)
throws java.security.GeneralSecurityException
file - the source of the key/trust materialjava.security.GeneralSecurityException - if there is an IO problem or if the key/trust material is corruptCopyright © 2014. All Rights Reserved.