Apache CXF API

org.apache.cxf.xkms.crypto.provider
Class XkmsCryptoProvider

java.lang.Object
  extended by org.apache.wss4j.common.crypto.CryptoBase
      extended by 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


Field Summary
 
Fields inherited from class org.apache.wss4j.common.crypto.CryptoBase
certFactMap, cryptoProvider, defaultAlias, NAME_CONSTRAINTS_OID, SKI_OID
 
Constructor Summary
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)
           
 
Method Summary
 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)
           
 
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
 

Constructor Detail

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)
Method Detail

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 API

Apache CXF