public class KeyMaterial extends TrustMaterial
Modifier and Type | Field and Description |
---|---|
private List |
aliases |
private List |
associatedChains |
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[] jksOrCerts,
byte[] key,
char[] jksPass,
char[] keyPass) |
KeyMaterial(byte[] jks,
char[] password) |
KeyMaterial(byte[] jks,
char[] jksPass,
char[] keyPass) |
KeyMaterial(File jksFile,
char[] password) |
KeyMaterial(File jksFile,
char[] jksPass,
char[] keyPass) |
KeyMaterial(File certsFile,
File keyFile,
char[] password) |
KeyMaterial(File certsFile,
File keyFile,
char[] jksPass,
char[] keyPass) |
KeyMaterial(InputStream jks,
char[] password) |
KeyMaterial(InputStream jks,
char[] jksPass,
char[] keyPass) |
KeyMaterial(InputStream jks,
InputStream key,
char[] password) |
KeyMaterial(InputStream jks,
InputStream key,
char[] jksPass,
char[] keyPass) |
KeyMaterial(String pathToJksFile,
char[] password) |
KeyMaterial(String pathToJksFile,
char[] jksPass,
char[] keyPass) |
KeyMaterial(String pathToCerts,
String pathToKey,
char[] password) |
KeyMaterial(String pathToCerts,
String pathToKey,
char[] jksPass,
char[] keyPass) |
KeyMaterial(URL urlToJKS,
char[] password) |
KeyMaterial(URL urlToJKS,
char[] jksPass,
char[] keyPass) |
KeyMaterial(URL urlToCerts,
URL urlToKey,
char[] password) |
KeyMaterial(URL urlToCerts,
URL urlToKey,
char[] jksPass,
char[] keyPass) |
Modifier and Type | Method and Description |
---|---|
List |
getAliases() |
List |
getAssociatedCertificateChains() |
Object[] |
getKeyManagers() |
KeyStore |
getKeyStore() |
static void |
main(String[] args) |
String |
toString() |
containsTrustAll
addTrustMaterial, contains, contains, getCertificates, getSize, getTrustManagerFactory, getTrustManagers, getUnifiedKeyStore, isEmpty
private final Object keyManagerFactory
private final List associatedChains
public KeyMaterial(InputStream jks, char[] password) throws GeneralSecurityException, IOException
GeneralSecurityException
IOException
public KeyMaterial(InputStream jks, char[] jksPass, char[] keyPass) throws GeneralSecurityException, IOException
GeneralSecurityException
IOException
public KeyMaterial(InputStream jks, InputStream key, char[] password) throws GeneralSecurityException, IOException
GeneralSecurityException
IOException
public KeyMaterial(InputStream jks, InputStream key, char[] jksPass, char[] keyPass) throws GeneralSecurityException, IOException
GeneralSecurityException
IOException
public KeyMaterial(String pathToJksFile, char[] password) throws GeneralSecurityException, IOException
GeneralSecurityException
IOException
public KeyMaterial(String pathToJksFile, char[] jksPass, char[] keyPass) throws GeneralSecurityException, IOException
GeneralSecurityException
IOException
public KeyMaterial(String pathToCerts, String pathToKey, char[] password) throws GeneralSecurityException, IOException
GeneralSecurityException
IOException
public KeyMaterial(String pathToCerts, String pathToKey, char[] jksPass, char[] keyPass) throws GeneralSecurityException, IOException
GeneralSecurityException
IOException
public KeyMaterial(File jksFile, char[] password) throws GeneralSecurityException, IOException
GeneralSecurityException
IOException
public KeyMaterial(File jksFile, char[] jksPass, char[] keyPass) throws GeneralSecurityException, IOException
GeneralSecurityException
IOException
public KeyMaterial(File certsFile, File keyFile, char[] password) throws GeneralSecurityException, IOException
GeneralSecurityException
IOException
public KeyMaterial(File certsFile, File keyFile, char[] jksPass, char[] keyPass) throws GeneralSecurityException, IOException
GeneralSecurityException
IOException
public KeyMaterial(URL urlToJKS, char[] password) throws GeneralSecurityException, IOException
GeneralSecurityException
IOException
public KeyMaterial(URL urlToJKS, char[] jksPass, char[] keyPass) throws GeneralSecurityException, IOException
GeneralSecurityException
IOException
public KeyMaterial(URL urlToCerts, URL urlToKey, char[] password) throws GeneralSecurityException, IOException
GeneralSecurityException
IOException
public KeyMaterial(URL urlToCerts, URL urlToKey, char[] jksPass, char[] keyPass) throws GeneralSecurityException, IOException
GeneralSecurityException
IOException
public KeyMaterial(byte[] jks, char[] password) throws GeneralSecurityException, IOException
GeneralSecurityException
IOException
public KeyMaterial(byte[] jks, char[] jksPass, char[] keyPass) throws GeneralSecurityException, IOException
GeneralSecurityException
IOException
public KeyMaterial(byte[] jksOrCerts, byte[] key, char[] password) throws GeneralSecurityException, IOException
GeneralSecurityException
IOException
public KeyMaterial(byte[] jksOrCerts, byte[] key, char[] jksPass, char[] keyPass) throws GeneralSecurityException, IOException
GeneralSecurityException
IOException
public Object[] getKeyManagers()
public List getAssociatedCertificateChains()
public KeyStore getKeyStore()
getKeyStore
in class TrustMaterial
public List getAliases()