org.apache.commons.ssl
Class TrustMaterial
java.lang.Object
org.apache.commons.ssl.TrustChain
org.apache.commons.ssl.TrustMaterial
- Direct Known Subclasses:
- KeyMaterial
- public class TrustMaterial
- extends TrustChain
- Since:
- 27-Feb-2006
- Author:
- Credit Union Central of British Columbia, www.cucbc.com, juliusdavies@cucbc.com
Fields inherited from class org.apache.commons.ssl.TrustChain |
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SIMPLE_TRUST_TYPE_TRUST_ALL
static final int SIMPLE_TRUST_TYPE_TRUST_ALL
- See Also:
- Constant Field Values
SIMPLE_TRUST_TYPE_TRUST_THIS_JVM
static final int SIMPLE_TRUST_TYPE_TRUST_THIS_JVM
- See Also:
- Constant Field Values
CACERTS
public static final TrustMaterial CACERTS
- Might be null if "$JAVA_HOME/jre/lib/security/cacerts" doesn't exist.
JSSE_CACERTS
public static final TrustMaterial JSSE_CACERTS
- Might be null if "$JAVA_HOME/jre/lib/security/jssecacerts" doesn't exist.
DEFAULT
public static final TrustMaterial DEFAULT
- Should never be null (unless both CACERTS and JSSE_CACERTS are not
present???). Is either CACERTS or JSSE_CACERTS. Priority given to
JSSE_CACERTS, but 99.9% of the time it's CACERTS, since JSSE_CACERTS
is almost never present.
TRUST_ALL
public static final TrustMaterial TRUST_ALL
TRUST_THIS_JVM
public static final TrustMaterial TRUST_THIS_JVM
simpleTrustType
public final int simpleTrustType
jks
private final KeyStore jks
TrustMaterial
private TrustMaterial(int simpleTrustType)
TrustMaterial
TrustMaterial(KeyStore jks,
int simpleTrustType)
TrustMaterial
public TrustMaterial(Collection x509Certs)
throws GeneralSecurityException,
IOException
TrustMaterial
public TrustMaterial(X509Certificate x509Cert)
throws GeneralSecurityException,
IOException
TrustMaterial
public TrustMaterial(X509Certificate[] x509Certs)
throws GeneralSecurityException,
IOException
TrustMaterial
public TrustMaterial(byte[] pemBase64)
throws GeneralSecurityException,
IOException
TrustMaterial
public TrustMaterial(InputStream pemBase64)
throws GeneralSecurityException,
IOException
TrustMaterial
public TrustMaterial(String pathToPemFile)
throws GeneralSecurityException,
IOException
TrustMaterial
public TrustMaterial(File pemFile)
throws GeneralSecurityException,
IOException
TrustMaterial
public TrustMaterial(URL urlToPemFile)
throws GeneralSecurityException,
IOException
TrustMaterial
public TrustMaterial(String pathToJksFile,
char[] password)
throws GeneralSecurityException,
IOException
TrustMaterial
public TrustMaterial(File jksFile,
char[] password)
throws GeneralSecurityException,
IOException
TrustMaterial
public TrustMaterial(URL urlToJKS,
char[] password)
throws GeneralSecurityException,
IOException
TrustMaterial
public TrustMaterial(InputStream jks,
char[] password)
throws GeneralSecurityException,
IOException
TrustMaterial
public TrustMaterial(byte[] jks,
char[] password)
throws GeneralSecurityException,
IOException
getKeyStore
public KeyStore getKeyStore()
loadCerts
private static void loadCerts(KeyStore ks,
Collection certs)
throws KeyStoreException
- Throws:
KeyStoreException