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 java.lang.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 javax.net.ssl.KeyManager[] getKeyManagers(org.apache.cxf.configuration.security.KeyManagersType kmc)
          This method converts the JAXB KeyManagersType into a list of JSSE KeyManagers.
static java.security.KeyStore getKeyStore(org.apache.cxf.configuration.security.CertStoreType pst)
          This method converts a JAXB generated CertStoreType into a KeyStore.
static java.security.KeyStore getKeyStore(org.apache.cxf.configuration.security.KeyStoreType kst)
          This method converts a JAXB generated KeyStoreType into a KeyStore.
static java.security.SecureRandom getSecureRandom(org.apache.cxf.configuration.security.SecureRandomParameters secureRandomParams)
          This method converts the JAXB generated type into a SecureRandom.
static javax.net.ssl.TrustManager[] getTrustManagers(org.apache.cxf.configuration.security.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 java.security.SecureRandom getSecureRandom(org.apache.cxf.configuration.security.SecureRandomParameters secureRandomParams)
                                                  throws java.security.GeneralSecurityException
This method converts the JAXB generated type into a SecureRandom.

Throws:
java.security.GeneralSecurityException

getKeyStore

public static java.security.KeyStore getKeyStore(org.apache.cxf.configuration.security.KeyStoreType kst)
                                          throws java.security.GeneralSecurityException,
                                                 java.io.IOException
This method converts a JAXB generated KeyStoreType into a KeyStore.

Throws:
java.security.GeneralSecurityException
java.io.IOException

getKeyStore

public static java.security.KeyStore getKeyStore(org.apache.cxf.configuration.security.CertStoreType pst)
                                          throws java.io.IOException,
                                                 java.security.cert.CertificateException,
                                                 java.security.KeyStoreException,
                                                 java.security.NoSuchAlgorithmException
This method converts a JAXB generated CertStoreType into a KeyStore.

Throws:
java.io.IOException
java.security.cert.CertificateException
java.security.KeyStoreException
java.security.NoSuchAlgorithmException

getKeyManagers

public static javax.net.ssl.KeyManager[] getKeyManagers(org.apache.cxf.configuration.security.KeyManagersType kmc)
                                                 throws java.security.GeneralSecurityException,
                                                        java.io.IOException
This method converts the JAXB KeyManagersType into a list of JSSE KeyManagers.

Throws:
java.security.GeneralSecurityException
java.io.IOException

getTrustManagers

public static javax.net.ssl.TrustManager[] getTrustManagers(org.apache.cxf.configuration.security.TrustManagersType tmc)
                                                     throws java.security.GeneralSecurityException,
                                                            java.io.IOException
This method converts the JAXB KeyManagersType into a list of JSSE TrustManagers.

Throws:
java.security.GeneralSecurityException
java.io.IOException


Apache CXF