Class TLSParameterJaxBUtils
- java.lang.Object
- 
- org.apache.cxf.configuration.jsse.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 SummaryAll Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static KeyManager[]getKeyManagers(org.apache.cxf.configuration.security.KeyManagersType kmc)This method converts the JAXB KeyManagersType into a list of JSSE KeyManagers.static KeyManager[]getKeyManagers(org.apache.cxf.configuration.security.KeyManagersType kmc, String alias)This method converts the JAXB KeyManagersType into a list of JSSE KeyManagers.static KeyStoregetKeyStore(org.apache.cxf.configuration.security.CertStoreType pst)This method converts a JAXB generated CertStoreType into a KeyStore.static KeyStoregetKeyStore(org.apache.cxf.configuration.security.KeyStoreType kst)static KeyStoregetKeyStore(org.apache.cxf.configuration.security.KeyStoreType kst, boolean trustStore)This method converts a JAXB generated KeyStoreType into a KeyStore.static SecureRandomgetSecureRandom(org.apache.cxf.configuration.security.SecureRandomParameters secureRandomParams)This method converts the JAXB generated type into a SecureRandom.static TrustManager[]getTrustManagers(org.apache.cxf.configuration.security.TrustManagersType tmc)Deprecated.static TrustManager[]getTrustManagers(org.apache.cxf.configuration.security.TrustManagersType tmc, boolean enableRevocation)
 
- 
- 
- 
Method Detail- 
getSecureRandompublic static SecureRandom getSecureRandom(org.apache.cxf.configuration.security.SecureRandomParameters secureRandomParams) throws GeneralSecurityException This method converts the JAXB generated type into a SecureRandom.- Throws:
- GeneralSecurityException
 
 - 
getKeyStorepublic static KeyStore getKeyStore(org.apache.cxf.configuration.security.KeyStoreType kst) throws GeneralSecurityException, IOException - Throws:
- GeneralSecurityException
- IOException
 
 - 
getKeyStorepublic static KeyStore getKeyStore(org.apache.cxf.configuration.security.KeyStoreType kst, boolean trustStore) throws GeneralSecurityException, IOException This method converts a JAXB generated KeyStoreType into a KeyStore.- Throws:
- GeneralSecurityException
- IOException
 
 - 
getKeyStorepublic static KeyStore getKeyStore(org.apache.cxf.configuration.security.CertStoreType pst) throws IOException, CertificateException, KeyStoreException, NoSuchAlgorithmException This method converts a JAXB generated CertStoreType into a KeyStore.
 - 
getKeyManagerspublic static KeyManager[] getKeyManagers(org.apache.cxf.configuration.security.KeyManagersType kmc) throws GeneralSecurityException, IOException This method converts the JAXB KeyManagersType into a list of JSSE KeyManagers.- Throws:
- GeneralSecurityException
- IOException
 
 - 
getKeyManagerspublic static KeyManager[] getKeyManagers(org.apache.cxf.configuration.security.KeyManagersType kmc, String alias) throws GeneralSecurityException, IOException This method converts the JAXB KeyManagersType into a list of JSSE KeyManagers.- Throws:
- GeneralSecurityException
- IOException
 
 - 
getTrustManagers@Deprecated public static TrustManager[] getTrustManagers(org.apache.cxf.configuration.security.TrustManagersType tmc) throws GeneralSecurityException, IOException Deprecated.This method converts the JAXB TrustManagersType into a list of JSSE TrustManagers.- Throws:
- GeneralSecurityException
- IOException
 
 - 
getTrustManagerspublic static TrustManager[] getTrustManagers(org.apache.cxf.configuration.security.TrustManagersType tmc, boolean enableRevocation) throws GeneralSecurityException, IOException - Throws:
- GeneralSecurityException
- IOException
 
 
- 
 
-