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