public class TrustMaterial extends TrustChain
| Modifier and Type | Field and Description |
|---|---|
static TrustMaterial |
CACERTS
Might be null if "$JAVA_HOME/jre/lib/security/cacerts" doesn't exist.
|
static TrustMaterial |
DEFAULT
Should never be null (unless both CACERTS and JSSE_CACERTS are not
present???).
|
static TrustMaterial |
JSSE_CACERTS
Might be null if "$JAVA_HOME/jre/lib/security/jssecacerts" doesn't exist.
|
int |
simpleTrustType |
static TrustMaterial |
TRUST_ALL |
static String |
TRUST_STORE_PASSWORD_PROPERTY
System property to specify a password used for opening trust stores for CACERTS and
JSSE_CACERTS.
|
static TrustMaterial |
TRUST_THIS_JVM |
| Constructor and Description |
|---|
TrustMaterial(byte[] pemBase64) |
TrustMaterial(byte[] jks,
char[] password) |
TrustMaterial(Collection x509Certs) |
TrustMaterial(File pemFile) |
TrustMaterial(File jksFile,
char[] password) |
TrustMaterial(InputStream pemBase64) |
TrustMaterial(InputStream jks,
char[] password) |
TrustMaterial(String pathToPemFile) |
TrustMaterial(String pathToJksFile,
char[] password) |
TrustMaterial(URL urlToPemFile) |
TrustMaterial(URL urlToJKS,
char[] password) |
TrustMaterial(X509Certificate x509Cert) |
TrustMaterial(X509Certificate[] x509Certs) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
containsTrustAll() |
KeyStore |
getKeyStore() |
addTrustMaterial, contains, contains, getCertificates, getSize, getTrustManagerFactory, getTrustManagers, getUnifiedKeyStore, isEmptypublic static final TrustMaterial CACERTS
public static final TrustMaterial JSSE_CACERTS
public static final TrustMaterial DEFAULT
public static final String TRUST_STORE_PASSWORD_PROPERTY
public static final TrustMaterial TRUST_ALL
public static final TrustMaterial TRUST_THIS_JVM
public final int simpleTrustType
public TrustMaterial(Collection x509Certs) throws GeneralSecurityException, IOException
GeneralSecurityExceptionIOExceptionpublic TrustMaterial(X509Certificate x509Cert) throws GeneralSecurityException, IOException
GeneralSecurityExceptionIOExceptionpublic TrustMaterial(X509Certificate[] x509Certs) throws GeneralSecurityException, IOException
GeneralSecurityExceptionIOExceptionpublic TrustMaterial(byte[] pemBase64)
throws GeneralSecurityException,
IOException
GeneralSecurityExceptionIOExceptionpublic TrustMaterial(InputStream pemBase64) throws GeneralSecurityException, IOException
GeneralSecurityExceptionIOExceptionpublic TrustMaterial(String pathToPemFile) throws GeneralSecurityException, IOException
GeneralSecurityExceptionIOExceptionpublic TrustMaterial(File pemFile) throws GeneralSecurityException, IOException
GeneralSecurityExceptionIOExceptionpublic TrustMaterial(URL urlToPemFile) throws GeneralSecurityException, IOException
GeneralSecurityExceptionIOExceptionpublic TrustMaterial(String pathToJksFile, char[] password) throws GeneralSecurityException, IOException
GeneralSecurityExceptionIOExceptionpublic TrustMaterial(File jksFile, char[] password) throws GeneralSecurityException, IOException
GeneralSecurityExceptionIOExceptionpublic TrustMaterial(URL urlToJKS, char[] password) throws GeneralSecurityException, IOException
GeneralSecurityExceptionIOExceptionpublic TrustMaterial(InputStream jks, char[] password) throws GeneralSecurityException, IOException
GeneralSecurityExceptionIOExceptionpublic TrustMaterial(byte[] jks,
char[] password)
throws GeneralSecurityException,
IOException
GeneralSecurityExceptionIOExceptionpublic KeyStore getKeyStore()
protected boolean containsTrustAll()
containsTrustAll in class TrustChainCopyright © 2019. All rights reserved.