org.apache.commons.ssl
Class KeyMaterial

java.lang.Object
  extended byorg.apache.commons.ssl.TrustChain
      extended byorg.apache.commons.ssl.TrustMaterial
          extended byorg.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  String alias
           
private  X509Certificate[] associatedChain
           
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
 
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)
           
 
Method Summary
 String getAlias()
           
 X509Certificate[] getAssociatedCertificateChain()
           
 Object[] getKeyManagers()
           
 KeyStore getKeyStore()
           
static void main(String[] args)
           
 String toString()
           
 
Methods inherited from class org.apache.commons.ssl.TrustMaterial
 
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

alias

private final String alias

associatedChain

private final X509Certificate[] associatedChain
Constructor Detail

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

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()