public final class KeyManagementUtils extends Object
public static List<String> loadAndEncodeX509CertificateOrChain(Message m, Properties props)
public static String loadDigestAndEncodeX509Certificate(Message m, Properties props, String digestAlgo)
public static X509Certificate[] loadX509CertificateOrChain(Message m, Properties props)
public static PublicKey loadPublicKey(Message m, Properties props)
public static PublicKey loadPublicKey(Message m, String keyStoreLocPropPreferred, String keyStoreLocPropDefault)
public static PublicKey loadPublicKey(String keyStoreLoc, String keyStorePassword, String keyAlias, Bus bus)
public static PrivateKey loadPrivateKey(Message m, String keyStoreLocProp, KeyOperation keyOper)
public static PrivateKey loadPrivateKey(Message m, String keyStoreLocPropPreferred, String keyStoreLocPropDefault, KeyOperation keyOper)
public static PrivateKey loadPrivateKey(String keyStoreLoc, String keyStorePassword, String keyAlias, String keyPassword, Bus bus)
public static PrivateKey loadPrivateKey(String keyStorePropLoc, Bus bus)
public static String getKeyId(Message m, Properties props, String preferredPropertyName, KeyOperation keyOper)
public static PrivateKeyPasswordProvider loadPasswordProvider(Message m, Properties props, KeyOperation keyOper)
public static PrivateKey loadPrivateKey(Message m, Properties props, KeyOperation keyOper)
public static KeyStore loadPersistKeyStore(Message m, Properties props)
public static KeyStore loadKeyStore(Properties props, Bus bus)
public static KeyStore loadKeyStore(String keyStoreLoc, String keyStoreType, String keyStorePswd, Bus bus)
public static List<String> encodeX509CertificateChain(X509Certificate[] chain)
public static List<String> encodeX509CertificateChain(List<X509Certificate> chain)
public static List<X509Certificate> toX509CertificateChain(List<String> base64EncodedChain)
public static void validateCertificateChain(Properties storeProperties, List<X509Certificate> inCerts)
public static X509Certificate[] toX509CertificateChainArray(List<String> base64EncodedChain)
public static String getKeyAlgorithm(Message m, Properties props, String propName, String defaultAlg)
public static Properties loadStoreProperties(Message m, boolean required, String storeProp1, String storeProp2)
public static PrivateKey loadPrivateKey(Message m, Properties props, X509Certificate inCert, KeyOperation keyOper)
public static X509Certificate getCertificateFromThumbprint(String thumbprint, String digestAlgorithm, Message m, Properties props)
public static void setSha1DigestHeader(JoseHeaders headers, Message m, Properties props)
public static void setSha256DigestHeader(JoseHeaders headers, Message m, Properties props)
Apache CXF