org.apache.commons.ssl
Class KeyMaterial
java.lang.Object
org.apache.commons.ssl.TrustChain
org.apache.commons.ssl.TrustMaterial
org.apache.commons.ssl.KeyMaterial
- public class KeyMaterial
- extends TrustMaterial
- 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 |
|
Constructor Summary |
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)
|
Methods inherited from class org.apache.commons.ssl.TrustMaterial |
|
keyManagerFactory
private final Object keyManagerFactory
alias
private final String alias
associatedChain
private final X509Certificate[] associatedChain
KeyMaterial
public KeyMaterial(InputStream jks,
char[] password)
throws GeneralSecurityException,
IOException
KeyMaterial
public KeyMaterial(InputStream jks,
InputStream key,
char[] password)
throws GeneralSecurityException,
IOException
KeyMaterial
public KeyMaterial(String pathToJksFile,
char[] password)
throws GeneralSecurityException,
IOException
KeyMaterial
public KeyMaterial(String pathToCerts,
String pathToKey,
char[] password)
throws GeneralSecurityException,
IOException
KeyMaterial
public KeyMaterial(File jksFile,
char[] password)
throws GeneralSecurityException,
IOException
KeyMaterial
public KeyMaterial(File certsFile,
File keyFile,
char[] password)
throws GeneralSecurityException,
IOException
KeyMaterial
public KeyMaterial(URL urlToJKS,
char[] password)
throws GeneralSecurityException,
IOException
KeyMaterial
public KeyMaterial(URL urlToCerts,
URL urlToKey,
char[] password)
throws GeneralSecurityException,
IOException
KeyMaterial
public KeyMaterial(byte[] jks,
char[] password)
throws GeneralSecurityException,
IOException
KeyMaterial
public KeyMaterial(byte[] jksOrCerts,
byte[] key,
char[] password)
throws GeneralSecurityException,
IOException
getKeyManagers
public Object[] getKeyManagers()
getAssociatedCertificateChain
public X509Certificate[] getAssociatedCertificateChain()
getKeyStore
public KeyStore getKeyStore()
- Overrides:
getKeyStore
in class TrustMaterial
getAlias
public String getAlias()
main
public static void main(String[] args)
throws Exception
- Throws:
Exception
toString
public String toString()