public class XkmsCryptoProvider
extends org.apache.wss4j.common.crypto.CryptoBase
Constructor and Description |
---|
XkmsCryptoProvider(XKMSPortType xkmsConsumer) |
XkmsCryptoProvider(XKMSPortType xkmsConsumer,
org.apache.wss4j.common.crypto.Crypto fallbackCrypto) |
XkmsCryptoProvider(XKMSPortType xkmsConsumer,
org.apache.wss4j.common.crypto.Crypto fallbackCrypto,
boolean allowX509FromJKS) |
XkmsCryptoProvider(XKMSPortType xkmsConsumer,
org.apache.wss4j.common.crypto.Crypto fallbackCrypto,
XKMSClientCache xkmsClientCache,
boolean allowX509FromJKS) |
Modifier and Type | Method and Description |
---|---|
PrivateKey |
getPrivateKey(PublicKey publicKey,
CallbackHandler callbackHandler) |
PrivateKey |
getPrivateKey(String identifier,
String password) |
PrivateKey |
getPrivateKey(X509Certificate certificate,
CallbackHandler callbackHandler) |
X509Certificate[] |
getX509Certificates(org.apache.wss4j.common.crypto.CryptoType cryptoType) |
String |
getX509Identifier(X509Certificate cert) |
void |
verifyTrust(PublicKey publicKey) |
void |
verifyTrust(X509Certificate[] certs,
boolean enableRevocation,
Collection<Pattern> subjectCertConstraints,
Collection<Pattern> issuerCertConstraints) |
createBCX509Name, getBytesFromCertificates, getCertificateFactory, getCertificatesFromBytes, getCryptoProvider, getDefaultX509Identifier, getNameConstraints, getSKIBytesFromCert, getTrustProvider, loadCertificate, matchesIssuerDnPattern, matchesName, matchesSubjectDnPattern, setCertificateFactory, setCryptoProvider, setDefaultX509Identifier, setTrustProvider
public XkmsCryptoProvider(XKMSPortType xkmsConsumer) throws XKMSClientCacheException
XKMSClientCacheException
public XkmsCryptoProvider(XKMSPortType xkmsConsumer, org.apache.wss4j.common.crypto.Crypto fallbackCrypto) throws XKMSClientCacheException
XKMSClientCacheException
public XkmsCryptoProvider(XKMSPortType xkmsConsumer, org.apache.wss4j.common.crypto.Crypto fallbackCrypto, boolean allowX509FromJKS) throws XKMSClientCacheException
XKMSClientCacheException
public XkmsCryptoProvider(XKMSPortType xkmsConsumer, org.apache.wss4j.common.crypto.Crypto fallbackCrypto, XKMSClientCache xkmsClientCache, boolean allowX509FromJKS)
public X509Certificate[] getX509Certificates(org.apache.wss4j.common.crypto.CryptoType cryptoType) throws org.apache.wss4j.common.ext.WSSecurityException
org.apache.wss4j.common.ext.WSSecurityException
public String getX509Identifier(X509Certificate cert) throws org.apache.wss4j.common.ext.WSSecurityException
org.apache.wss4j.common.ext.WSSecurityException
public PrivateKey getPrivateKey(X509Certificate certificate, CallbackHandler callbackHandler) throws org.apache.wss4j.common.ext.WSSecurityException
org.apache.wss4j.common.ext.WSSecurityException
public PrivateKey getPrivateKey(PublicKey publicKey, CallbackHandler callbackHandler) throws org.apache.wss4j.common.ext.WSSecurityException
org.apache.wss4j.common.ext.WSSecurityException
public PrivateKey getPrivateKey(String identifier, String password) throws org.apache.wss4j.common.ext.WSSecurityException
org.apache.wss4j.common.ext.WSSecurityException
public void verifyTrust(X509Certificate[] certs, boolean enableRevocation, Collection<Pattern> subjectCertConstraints, Collection<Pattern> issuerCertConstraints) throws org.apache.wss4j.common.ext.WSSecurityException
org.apache.wss4j.common.ext.WSSecurityException
public void verifyTrust(PublicKey publicKey) throws org.apache.wss4j.common.ext.WSSecurityException
org.apache.wss4j.common.ext.WSSecurityException
Apache CXF