org.apache.commons.ssl
Class KeyMaterial

java.lang.Object
  extended by org.apache.commons.ssl.TrustChain
      extended by org.apache.commons.ssl.TrustMaterial
          extended by 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

Field Summary
private  List aliases
           
private  List associatedChains
           
private  Object keyManagerFactory
           
 
Fields inherited from class org.apache.commons.ssl.TrustMaterial
CACERTS, DEFAULT, JSSE_CACERTS, SIMPLE_TRUST_TYPE_TRUST_ALL, SIMPLE_TRUST_TYPE_TRUST_THIS_JVM, simpleTrustType, TRUST_ALL, TRUST_THIS_JVM
 
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)
           
 
Method Summary
 List getAliases()
           
 List getAssociatedCertificateChains()
           
 Object[] getKeyManagers()
           
 KeyStore getKeyStore()
           
static void main(String[] args)
           
 String toString()
           
 
Methods inherited from class org.apache.commons.ssl.TrustMaterial
containsTrustAll
 
Methods inherited from class org.apache.commons.ssl.TrustChain
addTrustMaterial, contains, contains, getCertificates, getSize, getTrustManagerFactory, getTrustManagers, getUnifiedKeyStore, isEmpty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

keyManagerFactory

private final Object keyManagerFactory

aliases

private final List aliases

associatedChains

private final List associatedChains
Constructor Detail

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
Method Detail

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