Apache CXF API

org.apache.cxf.configuration.jsse.spring
Class TLSParameterJaxBUtils

java.lang.Object
  extended by org.apache.cxf.configuration.jsse.spring.TLSParameterJaxBUtils

public final class TLSParameterJaxBUtils
extends Object

This class provides some functionality to convert the JAXB generated types in the security.xsd to the items needed to programatically configure the HTTPConduit and HTTPDestination with TLSClientParameters and TLSServerParameters respectively.


Method Summary
static KeyManager[] getKeyManagers(KeyManagersType kmc)
          This method converts the JAXB KeyManagersType into a list of JSSE KeyManagers.
static KeyStore getKeyStore(CertStoreType pst)
          This method converts a JAXB generated CertStoreType into a KeyStore.
static KeyStore getKeyStore(KeyStoreType kst)
          This method converts a JAXB generated KeyStoreType into a KeyStore.
static SecureRandom getSecureRandom(SecureRandomParameters secureRandomParams)
          This method converts the JAXB generated type into a SecureRandom.
static TrustManager[] getTrustManagers(TrustManagersType tmc)
          This method converts the JAXB KeyManagersType into a list of JSSE TrustManagers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSecureRandom

public static SecureRandom getSecureRandom(SecureRandomParameters secureRandomParams)
                                    throws GeneralSecurityException
This method converts the JAXB generated type into a SecureRandom.

Throws:
GeneralSecurityException

getKeyStore

public static KeyStore getKeyStore(KeyStoreType kst)
                            throws GeneralSecurityException,
                                   IOException
This method converts a JAXB generated KeyStoreType into a KeyStore.

Throws:
GeneralSecurityException
IOException

getKeyStore

public static KeyStore getKeyStore(CertStoreType pst)
                            throws IOException,
                                   CertificateException,
                                   KeyStoreException,
                                   NoSuchAlgorithmException
This method converts a JAXB generated CertStoreType into a KeyStore.

Throws:
IOException
CertificateException
KeyStoreException
NoSuchAlgorithmException

getKeyManagers

public static KeyManager[] getKeyManagers(KeyManagersType kmc)
                                   throws GeneralSecurityException,
                                          IOException
This method converts the JAXB KeyManagersType into a list of JSSE KeyManagers.

Throws:
GeneralSecurityException
IOException

getTrustManagers

public static TrustManager[] getTrustManagers(TrustManagersType tmc)
                                       throws GeneralSecurityException,
                                              IOException
This method converts the JAXB KeyManagersType into a list of JSSE TrustManagers.

Throws:
GeneralSecurityException
IOException

Apache CXF API

Apache CXF