| java.lang.Object com.sun.xml.wss.util.XWSSUtil
XWSSUtil | abstract public class XWSSUtil (Code) | | author: Abhijit Das |
Method Summary | |
public static SecretKey | generateSymmetricKey(String algorithm) | public static X509Certificate | getCertificateFromTrustStore(byte[] ski, KeyStore trustStore) | public static X509Certificate | getCertificateFromTrustStore(String issuerName, BigInteger serialNumber, KeyStore trustStore) | public static PrivateKey | getPrivateKey(byte[] ski, KeyStore keyStore, String keyStorePassword) | public static PrivateKey | getPrivateKey(String issuerName, BigInteger serialNumber, KeyStore keyStore, String keyStorePassword) | public static PrivateKey | getPrivateKey(X509Certificate certificate, KeyStore keyStore, String keyStorePassword) | public static byte[] | getSubjectKeyIdentifier(X509Certificate cert) |
getCertificateFromTrustStore | public static X509Certificate getCertificateFromTrustStore(byte[] ski, KeyStore trustStore) throws IOException(Code) | | Parameters: ski - byte[] representing SubjectKeyIdentifier Parameters: trustStore - java.security.KeyStore X509Certificate from trustStore if present otherwise null. throws: java.io.IOException - |
getCertificateFromTrustStore | public static X509Certificate getCertificateFromTrustStore(String issuerName, BigInteger serialNumber, KeyStore trustStore) throws IOException(Code) | | Parameters: issuerName - Certificate Issuer Name Parameters: serialNumber - Serial number of the certificate Parameters: trustStore - java.security.Keystore throws: java.io.IOException - java.security.X509Certificate |
getSubjectKeyIdentifier | public static byte[] getSubjectKeyIdentifier(X509Certificate cert)(Code) | | Parameters: cert - java.security.cert.X509Certificate byte[] representation of X509Certificate's SubjectKeyIdentifier |
|
|