org.apache.commons.ssl
public class KeyMaterial extends TrustMaterial
Modifier and Type | Field and Description |
---|---|
private String |
alias |
private X509Certificate[] |
associatedChain |
private Object |
keyManagerFactory |
CACERTS, DEFAULT, JSSE_CACERTS, SIMPLE_TRUST_TYPE_TRUST_ALL, SIMPLE_TRUST_TYPE_TRUST_THIS_JVM, simpleTrustType, TRUST_ALL, TRUST_THIS_JVM
Constructor and Description |
---|
KeyMaterial(byte[] jksOrCerts,
byte[] key,
char[] password) |
KeyMaterial(byte[] jks,
char[] password) |
KeyMaterial(File jksFile,
char[] password) |
KeyMaterial(File certsFile,
File keyFile,
char[] password) |
KeyMaterial(InputStream jks,
char[] password) |
KeyMaterial(InputStream jks,
InputStream key,
char[] password) |
KeyMaterial(String pathToJksFile,
char[] password) |
KeyMaterial(String pathToCerts,
String pathToKey,
char[] password) |
KeyMaterial(URL urlToJKS,
char[] password) |
KeyMaterial(URL urlToCerts,
URL urlToKey,
char[] password) |
Modifier and Type | Method and Description |
---|---|
String |
getAlias() |
X509Certificate[] |
getAssociatedCertificateChain() |
Object[] |
getKeyManagers() |
KeyStore |
getKeyStore() |
static void |
main(String[] args) |
String |
toString() |
addTrustMaterial, contains, contains, getCertificates, getSize, getTrustManagerFactory, getTrustManagers, getUnifiedKeyStore, isEmpty
private final Object keyManagerFactory
private final X509Certificate[] associatedChain
public KeyMaterial(InputStream jks, char[] password) throws GeneralSecurityException, IOException
GeneralSecurityException
IOException
public KeyMaterial(InputStream jks, InputStream key, char[] password) throws GeneralSecurityException, IOException
GeneralSecurityException
IOException
public KeyMaterial(String pathToJksFile, char[] password) throws GeneralSecurityException, IOException
GeneralSecurityException
IOException
public KeyMaterial(String pathToCerts, String pathToKey, char[] password) throws GeneralSecurityException, IOException
GeneralSecurityException
IOException
public KeyMaterial(File jksFile, char[] password) throws GeneralSecurityException, IOException
GeneralSecurityException
IOException
public KeyMaterial(File certsFile, File keyFile, char[] password) throws GeneralSecurityException, IOException
GeneralSecurityException
IOException
public KeyMaterial(URL urlToJKS, char[] password) throws GeneralSecurityException, IOException
GeneralSecurityException
IOException
public KeyMaterial(URL urlToCerts, URL urlToKey, char[] password) throws GeneralSecurityException, IOException
GeneralSecurityException
IOException
public KeyMaterial(byte[] jks, char[] password) throws GeneralSecurityException, IOException
GeneralSecurityException
IOException
public KeyMaterial(byte[] jksOrCerts, byte[] key, char[] password) throws GeneralSecurityException, IOException
GeneralSecurityException
IOException
public Object[] getKeyManagers()
public X509Certificate[] getAssociatedCertificateChain()
public KeyStore getKeyStore()
getKeyStore
in class TrustMaterial