org.apache.cxf.xkms.crypto.provider
Class XkmsCryptoProvider
java.lang.Object
org.apache.wss4j.common.crypto.CryptoBase
org.apache.cxf.xkms.crypto.provider.XkmsCryptoProvider
- All Implemented Interfaces:
- org.apache.wss4j.common.crypto.Crypto
public class XkmsCryptoProvider
- extends org.apache.wss4j.common.crypto.CryptoBase
Fields inherited from class org.apache.wss4j.common.crypto.CryptoBase |
certFactMap, cryptoProvider, defaultAlias, NAME_CONSTRAINTS_OID, SKI_OID |
Methods inherited from class org.apache.wss4j.common.crypto.CryptoBase |
createBCX509Name, getBytesFromCertificates, getCertificateFactory, getCertificatesFromBytes, getCryptoProvider, getDefaultX509Identifier, getSKIBytesFromCert, loadCertificate, matches, setCertificateFactory, setCryptoProvider, setDefaultX509Identifier, verifyDirectTrust |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XkmsCryptoProvider
public XkmsCryptoProvider(XKMSPortType xkmsConsumer)
XkmsCryptoProvider
public XkmsCryptoProvider(XKMSPortType xkmsConsumer,
org.apache.wss4j.common.crypto.Crypto fallbackCrypto)
XkmsCryptoProvider
public XkmsCryptoProvider(XKMSPortType xkmsConsumer,
org.apache.wss4j.common.crypto.Crypto fallbackCrypto,
boolean allowX509FromJKS)
XkmsCryptoProvider
public XkmsCryptoProvider(XKMSPortType xkmsConsumer,
org.apache.wss4j.common.crypto.Crypto fallbackCrypto,
XKMSClientCache xkmsClientCache,
boolean allowX509FromJKS)
getX509Certificates
public X509Certificate[] getX509Certificates(org.apache.wss4j.common.crypto.CryptoType cryptoType)
throws org.apache.wss4j.common.ext.WSSecurityException
- Throws:
org.apache.wss4j.common.ext.WSSecurityException
getX509Identifier
public String getX509Identifier(X509Certificate cert)
throws org.apache.wss4j.common.ext.WSSecurityException
- Throws:
org.apache.wss4j.common.ext.WSSecurityException
getPrivateKey
public PrivateKey getPrivateKey(X509Certificate certificate,
CallbackHandler callbackHandler)
throws org.apache.wss4j.common.ext.WSSecurityException
- Throws:
org.apache.wss4j.common.ext.WSSecurityException
getPrivateKey
public PrivateKey getPrivateKey(String identifier,
String password)
throws org.apache.wss4j.common.ext.WSSecurityException
- Throws:
org.apache.wss4j.common.ext.WSSecurityException
verifyTrust
public void verifyTrust(X509Certificate[] certs,
boolean enableRevocation,
Collection<Pattern> subjectCertConstraints)
throws org.apache.wss4j.common.ext.WSSecurityException
- Throws:
org.apache.wss4j.common.ext.WSSecurityException
verifyTrust
public void verifyTrust(PublicKey publicKey)
throws org.apache.wss4j.common.ext.WSSecurityException
- Throws:
org.apache.wss4j.common.ext.WSSecurityException
Apache CXF