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 HTTPDesination 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.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 kmc)
          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

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 kmc)
                                                     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 is an effort undergoing incubation at the Apache Software Foundation(ASF) and sponsored by the Apache Incubator PMC.