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
Constructor Summary |
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)
|
keyManagerFactory
private final Object keyManagerFactory
aliases
private final List aliases
associatedChains
private final List associatedChains
KeyMaterial
public KeyMaterial(InputStream jks,
char[] password)
throws GeneralSecurityException,
IOException
- Throws:
GeneralSecurityException
IOException
KeyMaterial
public KeyMaterial(InputStream jks,
char[] jksPass,
char[] keyPass)
throws GeneralSecurityException,
IOException
- Throws:
GeneralSecurityException
IOException
KeyMaterial
public KeyMaterial(InputStream jks,
InputStream key,
char[] password)
throws GeneralSecurityException,
IOException
- Throws:
GeneralSecurityException
IOException
KeyMaterial
public KeyMaterial(InputStream jks,
InputStream key,
char[] jksPass,
char[] keyPass)
throws GeneralSecurityException,
IOException
- Throws:
GeneralSecurityException
IOException
KeyMaterial
public KeyMaterial(String pathToJksFile,
char[] password)
throws GeneralSecurityException,
IOException
- Throws:
GeneralSecurityException
IOException
KeyMaterial
public KeyMaterial(String pathToJksFile,
char[] jksPass,
char[] keyPass)
throws GeneralSecurityException,
IOException
- Throws:
GeneralSecurityException
IOException
KeyMaterial
public KeyMaterial(String pathToCerts,
String pathToKey,
char[] password)
throws GeneralSecurityException,
IOException
- Throws:
GeneralSecurityException
IOException
KeyMaterial
public KeyMaterial(String pathToCerts,
String pathToKey,
char[] jksPass,
char[] keyPass)
throws GeneralSecurityException,
IOException
- Throws:
GeneralSecurityException
IOException
KeyMaterial
public KeyMaterial(File jksFile,
char[] password)
throws GeneralSecurityException,
IOException
- Throws:
GeneralSecurityException
IOException
KeyMaterial
public KeyMaterial(File jksFile,
char[] jksPass,
char[] keyPass)
throws GeneralSecurityException,
IOException
- Throws:
GeneralSecurityException
IOException
KeyMaterial
public KeyMaterial(File certsFile,
File keyFile,
char[] password)
throws GeneralSecurityException,
IOException
- Throws:
GeneralSecurityException
IOException
KeyMaterial
public KeyMaterial(File certsFile,
File keyFile,
char[] jksPass,
char[] keyPass)
throws GeneralSecurityException,
IOException
- Throws:
GeneralSecurityException
IOException
KeyMaterial
public KeyMaterial(URL urlToJKS,
char[] password)
throws GeneralSecurityException,
IOException
- Throws:
GeneralSecurityException
IOException
KeyMaterial
public KeyMaterial(URL urlToJKS,
char[] jksPass,
char[] keyPass)
throws GeneralSecurityException,
IOException
- Throws:
GeneralSecurityException
IOException
KeyMaterial
public KeyMaterial(URL urlToCerts,
URL urlToKey,
char[] password)
throws GeneralSecurityException,
IOException
- Throws:
GeneralSecurityException
IOException
KeyMaterial
public KeyMaterial(URL urlToCerts,
URL urlToKey,
char[] jksPass,
char[] keyPass)
throws GeneralSecurityException,
IOException
- Throws:
GeneralSecurityException
IOException
KeyMaterial
public KeyMaterial(byte[] jks,
char[] password)
throws GeneralSecurityException,
IOException
- Throws:
GeneralSecurityException
IOException
KeyMaterial
public KeyMaterial(byte[] jks,
char[] jksPass,
char[] keyPass)
throws GeneralSecurityException,
IOException
- Throws:
GeneralSecurityException
IOException
KeyMaterial
public KeyMaterial(byte[] jksOrCerts,
byte[] key,
char[] password)
throws GeneralSecurityException,
IOException
- Throws:
GeneralSecurityException
IOException
KeyMaterial
public KeyMaterial(byte[] jksOrCerts,
byte[] key,
char[] jksPass,
char[] keyPass)
throws GeneralSecurityException,
IOException
- Throws:
GeneralSecurityException
IOException
getKeyManagers
public Object[] getKeyManagers()
getAssociatedCertificateChains
public List getAssociatedCertificateChains()
getKeyStore
public KeyStore getKeyStore()
- Overrides:
getKeyStore
in class TrustMaterial
getAliases
public List getAliases()
main
public static void main(String[] args)
throws Exception
- Throws:
Exception
toString
public String toString()
- Overrides:
toString
in class Object