|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.ws.soap.security.xwss.callback.AbstractCallbackHandler
org.springframework.ws.soap.security.xwss.callback.CryptographyCallbackHandler
public class CryptographyCallbackHandler
Default callback handler that handles cryptographic callback. This handler determines the exact callback passed, and
calls a template method for it. By default, all template methods throw an UnsupportedCallbackException
,
so you only need to override those you need.
Field Summary |
---|
Fields inherited from class org.springframework.ws.soap.security.xwss.callback.AbstractCallbackHandler |
---|
logger |
Constructor Summary | |
---|---|
CryptographyCallbackHandler()
|
Method Summary | |
---|---|
protected void |
handleAliasPrivKeyCertRequest(SignatureKeyCallback callback,
SignatureKeyCallback.AliasPrivKeyCertRequest request)
Template method that handles SignatureKeyCallback s with AliasPrivKeyCertRequest s. |
protected void |
handleAliasSymmetricKeyRequest(DecryptionKeyCallback callback,
DecryptionKeyCallback.AliasSymmetricKeyRequest request)
Template method that handles DecryptionKeyCallback s with AliasSymmetricKeyRequest s. |
protected void |
handleAliasSymmetricKeyRequest(EncryptionKeyCallback callback,
EncryptionKeyCallback.AliasSymmetricKeyRequest request)
Template method that handles EncryptionKeyCallback s with AliasSymmetricKeyRequest s. |
protected void |
handleAliasX509CertificateRequest(EncryptionKeyCallback callback,
EncryptionKeyCallback.AliasX509CertificateRequest request)
Template method that handles EncryptionKeyCallback s with AliasX509CertificateRequest s. |
protected void |
handleCertificateValidationCallback(CertificateValidationCallback callback)
Template method that handles CertificateValidationCallback s. |
protected void |
handleDecryptionKeyCallback(DecryptionKeyCallback callback)
Method that handles DecryptionKeyCallback s. |
protected void |
handleDefaultPrivKeyCertRequest(SignatureKeyCallback callback,
SignatureKeyCallback.DefaultPrivKeyCertRequest request)
Template method that handles SignatureKeyCallback s with DefaultPrivKeyCertRequest s. |
protected void |
handleDefaultX509CertificateRequest(EncryptionKeyCallback callback,
EncryptionKeyCallback.DefaultX509CertificateRequest request)
Template method that handles EncryptionKeyCallback s with DefaultX509CertificateRequest s. |
protected void |
handleEncryptionKeyCallback(EncryptionKeyCallback callback)
Method that handles EncryptionKeyCallback s. |
protected void |
handleInternal(Callback callback)
Template method that should be implemented by subclasses. |
protected void |
handlePrivateKeyRequest(DecryptionKeyCallback callback,
DecryptionKeyCallback.PrivateKeyRequest request)
Method that handles DecryptionKeyCallback s with PrivateKeyRequest . |
protected void |
handlePrivKeyCertRequest(SignatureKeyCallback cb,
SignatureKeyCallback.PrivKeyCertRequest request)
Method that handles SignatureKeyCallback s with PrivKeyCertRequest s. |
protected void |
handlePublicKeyBasedPrivKeyCertRequest(SignatureKeyCallback callback,
SignatureKeyCallback.PublicKeyBasedPrivKeyCertRequest request)
Template method that handles SignatureKeyCallback s with PublicKeyBasedPrivKeyCertRequest s. |
protected void |
handlePublicKeyBasedPrivKeyRequest(DecryptionKeyCallback callback,
DecryptionKeyCallback.PublicKeyBasedPrivKeyRequest request)
Template method that handles DecryptionKeyCallback s with PublicKeyBasedPrivKeyRequest s. |
protected void |
handlePublicKeyBasedRequest(EncryptionKeyCallback callback,
EncryptionKeyCallback.PublicKeyBasedRequest request)
Template method that handles EncryptionKeyCallback s with PublicKeyBasedRequest s. |
protected void |
handlePublicKeyBasedRequest(SignatureVerificationKeyCallback callback,
SignatureVerificationKeyCallback.PublicKeyBasedRequest request)
Template method that handles SignatureKeyCallback s with PublicKeyBasedRequest s. |
protected void |
handleSignatureKeyCallback(SignatureKeyCallback callback)
Method that handles SignatureKeyCallback s. |
protected void |
handleSignatureVerificationKeyCallback(SignatureVerificationKeyCallback callback)
Method that handles SignatureVerificationKeyCallback s. |
protected void |
handleSymmetricKeyRequest(DecryptionKeyCallback callback,
DecryptionKeyCallback.SymmetricKeyRequest request)
Method that handles DecryptionKeyCallback s with SymmetricKeyRequest . |
protected void |
handleSymmetricKeyRequest(EncryptionKeyCallback callback,
EncryptionKeyCallback.SymmetricKeyRequest request)
Method that handles EncryptionKeyCallback s with SymmetricKeyRequest . |
protected void |
handleX509CertificateBasedRequest(DecryptionKeyCallback callback,
DecryptionKeyCallback.X509CertificateBasedRequest request)
Template method that handles DecryptionKeyCallback s with X509CertificateBasedRequest s. |
protected void |
handleX509CertificateRequest(EncryptionKeyCallback callback,
EncryptionKeyCallback.X509CertificateRequest request)
Method that handles EncryptionKeyCallback s with X509CertificateRequest . |
protected void |
handleX509CertificateRequest(SignatureVerificationKeyCallback callback,
SignatureVerificationKeyCallback.X509CertificateRequest request)
Method that handles SignatureVerificationKeyCallback s with X509CertificateRequest s. |
protected void |
handleX509IssuerSerialBasedRequest(DecryptionKeyCallback callback,
DecryptionKeyCallback.X509IssuerSerialBasedRequest request)
Template method that handles DecryptionKeyCallback s with X509IssuerSerialBasedRequest s. |
protected void |
handleX509IssuerSerialBasedRequest(SignatureVerificationKeyCallback callback,
SignatureVerificationKeyCallback.X509IssuerSerialBasedRequest request)
Template method that handles SignatureKeyCallback s with X509IssuerSerialBasedRequest s. |
protected void |
handleX509SubjectKeyIdentifierBasedRequest(DecryptionKeyCallback callback,
DecryptionKeyCallback.X509SubjectKeyIdentifierBasedRequest request)
Template method that handles DecryptionKeyCallback s with X509SubjectKeyIdentifierBasedRequest s. |
protected void |
handleX509SubjectKeyIdentifierBasedRequest(SignatureVerificationKeyCallback callback,
SignatureVerificationKeyCallback.X509SubjectKeyIdentifierBasedRequest request)
Template method that handles SignatureKeyCallback s with PublicKeyBasedPrivKeyCertRequest s. |
Methods inherited from class org.springframework.ws.soap.security.xwss.callback.AbstractCallbackHandler |
---|
handle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CryptographyCallbackHandler()
Method Detail |
---|
protected final void handleInternal(Callback callback) throws IOException, UnsupportedCallbackException
AbstractCallbackHandler
handleInternal
in class AbstractCallbackHandler
IOException
UnsupportedCallbackException
protected void handleCertificateValidationCallback(CertificateValidationCallback callback) throws IOException, UnsupportedCallbackException
CertificateValidationCallback
s. Called from
handleInternal()
. Default implementation throws an UnsupportedCallbackException
.
IOException
UnsupportedCallbackException
protected final void handleDecryptionKeyCallback(DecryptionKeyCallback callback) throws IOException, UnsupportedCallbackException
DecryptionKeyCallback
s. Called from handleInternal()
. Default
implementation delegates to specific handling methods.
IOException
UnsupportedCallbackException
handlePrivateKeyRequest(com.sun.xml.wss.impl.callback.DecryptionKeyCallback,
com.sun.xml.wss.impl.callback.DecryptionKeyCallback.PrivateKeyRequest)
,
handleSymmetricKeyRequest(com.sun.xml.wss.impl.callback.DecryptionKeyCallback,
com.sun.xml.wss.impl.callback.DecryptionKeyCallback.SymmetricKeyRequest)
protected final void handlePrivateKeyRequest(DecryptionKeyCallback callback, DecryptionKeyCallback.PrivateKeyRequest request) throws IOException, UnsupportedCallbackException
DecryptionKeyCallback
s with PrivateKeyRequest
. Called from
handleDecryptionKeyCallback()
. Default implementation delegates to specific handling methods.
IOException
UnsupportedCallbackException
handlePublicKeyBasedPrivKeyCertRequest(com.sun.xml.wss.impl.callback.SignatureKeyCallback,
com.sun.xml.wss.impl.callback.SignatureKeyCallback.PublicKeyBasedPrivKeyCertRequest)
,
handleX509CertificateBasedRequest(com.sun.xml.wss.impl.callback.DecryptionKeyCallback,
com.sun.xml.wss.impl.callback.DecryptionKeyCallback.X509CertificateBasedRequest)
,
handleX509IssuerSerialBasedRequest(com.sun.xml.wss.impl.callback.DecryptionKeyCallback,
com.sun.xml.wss.impl.callback.DecryptionKeyCallback.X509IssuerSerialBasedRequest)
,
handleX509SubjectKeyIdentifierBasedRequest(com.sun.xml.wss.impl.callback.DecryptionKeyCallback,
com.sun.xml.wss.impl.callback.DecryptionKeyCallback.X509SubjectKeyIdentifierBasedRequest)
protected void handlePublicKeyBasedPrivKeyRequest(DecryptionKeyCallback callback, DecryptionKeyCallback.PublicKeyBasedPrivKeyRequest request) throws IOException, UnsupportedCallbackException
DecryptionKeyCallback
s with PublicKeyBasedPrivKeyRequest
s.
Called from handlePrivateKeyRequest()
. Default implementation throws an
UnsupportedCallbackException
.
IOException
UnsupportedCallbackException
protected void handleX509CertificateBasedRequest(DecryptionKeyCallback callback, DecryptionKeyCallback.X509CertificateBasedRequest request) throws IOException, UnsupportedCallbackException
DecryptionKeyCallback
s with X509CertificateBasedRequest
s.
Called from handlePrivateKeyRequest()
. Default implementation throws an
UnsupportedCallbackException
.
IOException
UnsupportedCallbackException
protected void handleX509IssuerSerialBasedRequest(DecryptionKeyCallback callback, DecryptionKeyCallback.X509IssuerSerialBasedRequest request) throws IOException, UnsupportedCallbackException
DecryptionKeyCallback
s with X509IssuerSerialBasedRequest
s.
Called from handlePrivateKeyRequest()
. Default implementation throws an
UnsupportedCallbackException
.
IOException
UnsupportedCallbackException
protected void handleX509SubjectKeyIdentifierBasedRequest(DecryptionKeyCallback callback, DecryptionKeyCallback.X509SubjectKeyIdentifierBasedRequest request) throws IOException, UnsupportedCallbackException
DecryptionKeyCallback
s with X509SubjectKeyIdentifierBasedRequest
s.
Called from handlePrivateKeyRequest()
. Default implementation throws an
UnsupportedCallbackException
.
IOException
UnsupportedCallbackException
protected final void handleSymmetricKeyRequest(DecryptionKeyCallback callback, DecryptionKeyCallback.SymmetricKeyRequest request) throws IOException, UnsupportedCallbackException
DecryptionKeyCallback
s with SymmetricKeyRequest
. Called from
handleDecryptionKeyCallback()
. Default implementation delegates to specific handling methods.
IOException
UnsupportedCallbackException
handleAliasSymmetricKeyRequest(com.sun.xml.wss.impl.callback.DecryptionKeyCallback,
com.sun.xml.wss.impl.callback.DecryptionKeyCallback.AliasSymmetricKeyRequest)
protected void handleAliasSymmetricKeyRequest(DecryptionKeyCallback callback, DecryptionKeyCallback.AliasSymmetricKeyRequest request) throws IOException, UnsupportedCallbackException
DecryptionKeyCallback
s with AliasSymmetricKeyRequest
s.
Called from handleSymmetricKeyRequest()
. Default implementation throws an
UnsupportedCallbackException
.
IOException
UnsupportedCallbackException
protected final void handleEncryptionKeyCallback(EncryptionKeyCallback callback) throws IOException, UnsupportedCallbackException
EncryptionKeyCallback
s. Called from handleInternal()
. Default
implementation delegates to specific handling methods.
IOException
UnsupportedCallbackException
handleSymmetricKeyRequest(com.sun.xml.wss.impl.callback.EncryptionKeyCallback,
com.sun.xml.wss.impl.callback.EncryptionKeyCallback.SymmetricKeyRequest)
,
handleX509CertificateRequest(com.sun.xml.wss.impl.callback.EncryptionKeyCallback,
com.sun.xml.wss.impl.callback.EncryptionKeyCallback.X509CertificateRequest)
protected final void handleSymmetricKeyRequest(EncryptionKeyCallback callback, EncryptionKeyCallback.SymmetricKeyRequest request) throws IOException, UnsupportedCallbackException
EncryptionKeyCallback
s with SymmetricKeyRequest
. Called from
handleEncryptionKeyCallback()
. Default implementation delegates to specific handling methods.
IOException
UnsupportedCallbackException
handleAliasSymmetricKeyRequest(com.sun.xml.wss.impl.callback.EncryptionKeyCallback,
com.sun.xml.wss.impl.callback.EncryptionKeyCallback.AliasSymmetricKeyRequest)
protected void handleAliasSymmetricKeyRequest(EncryptionKeyCallback callback, EncryptionKeyCallback.AliasSymmetricKeyRequest request) throws IOException, UnsupportedCallbackException
EncryptionKeyCallback
s with AliasSymmetricKeyRequest
s.
Called from handleSymmetricKeyRequest()
. Default implementation throws an
UnsupportedCallbackException
.
IOException
UnsupportedCallbackException
protected final void handleX509CertificateRequest(EncryptionKeyCallback callback, EncryptionKeyCallback.X509CertificateRequest request) throws IOException, UnsupportedCallbackException
EncryptionKeyCallback
s with X509CertificateRequest
. Called from
handleEncryptionKeyCallback()
. Default implementation delegates to specific handling methods.
IOException
UnsupportedCallbackException
handleAliasX509CertificateRequest(com.sun.xml.wss.impl.callback.EncryptionKeyCallback,
com.sun.xml.wss.impl.callback.EncryptionKeyCallback.AliasX509CertificateRequest)
,
handleDefaultX509CertificateRequest(com.sun.xml.wss.impl.callback.EncryptionKeyCallback,
com.sun.xml.wss.impl.callback.EncryptionKeyCallback.DefaultX509CertificateRequest)
,
handlePublicKeyBasedRequest(com.sun.xml.wss.impl.callback.EncryptionKeyCallback,
com.sun.xml.wss.impl.callback.EncryptionKeyCallback.PublicKeyBasedRequest)
protected void handleAliasX509CertificateRequest(EncryptionKeyCallback callback, EncryptionKeyCallback.AliasX509CertificateRequest request) throws IOException, UnsupportedCallbackException
EncryptionKeyCallback
s with AliasX509CertificateRequest
s.
Called from handleX509CertificateRequest()
. Default implementation throws an
UnsupportedCallbackException
.
IOException
UnsupportedCallbackException
protected void handleDefaultX509CertificateRequest(EncryptionKeyCallback callback, EncryptionKeyCallback.DefaultX509CertificateRequest request) throws IOException, UnsupportedCallbackException
EncryptionKeyCallback
s with DefaultX509CertificateRequest
s.
Called from handleX509CertificateRequest()
. Default implementation throws an
UnsupportedCallbackException
.
IOException
UnsupportedCallbackException
protected void handlePublicKeyBasedRequest(EncryptionKeyCallback callback, EncryptionKeyCallback.PublicKeyBasedRequest request) throws IOException, UnsupportedCallbackException
EncryptionKeyCallback
s with PublicKeyBasedRequest
s. Called
from handleX509CertificateRequest()
. Default implementation throws an
UnsupportedCallbackException
.
IOException
UnsupportedCallbackException
protected final void handleSignatureKeyCallback(SignatureKeyCallback callback) throws IOException, UnsupportedCallbackException
SignatureKeyCallback
s. Called from handleInternal()
. Default
implementation delegates to specific handling methods.
IOException
UnsupportedCallbackException
handlePrivKeyCertRequest(com.sun.xml.wss.impl.callback.SignatureKeyCallback,
com.sun.xml.wss.impl.callback.SignatureKeyCallback.PrivKeyCertRequest)
protected final void handlePrivKeyCertRequest(SignatureKeyCallback cb, SignatureKeyCallback.PrivKeyCertRequest request) throws IOException, UnsupportedCallbackException
SignatureKeyCallback
s with PrivKeyCertRequest
s. Called from
handleSignatureKeyCallback()
. Default implementation delegates to specific handling methods.
IOException
UnsupportedCallbackException
handleDefaultPrivKeyCertRequest(com.sun.xml.wss.impl.callback.SignatureKeyCallback,
com.sun.xml.wss.impl.callback.SignatureKeyCallback.DefaultPrivKeyCertRequest)
,
handleAliasPrivKeyCertRequest(com.sun.xml.wss.impl.callback.SignatureKeyCallback,
com.sun.xml.wss.impl.callback.SignatureKeyCallback.AliasPrivKeyCertRequest)
,
handlePublicKeyBasedPrivKeyCertRequest(com.sun.xml.wss.impl.callback.SignatureKeyCallback,
com.sun.xml.wss.impl.callback.SignatureKeyCallback.PublicKeyBasedPrivKeyCertRequest)
protected void handleDefaultPrivKeyCertRequest(SignatureKeyCallback callback, SignatureKeyCallback.DefaultPrivKeyCertRequest request) throws IOException, UnsupportedCallbackException
SignatureKeyCallback
s with DefaultPrivKeyCertRequest
s.
Called from handlePrivKeyCertRequest()
. Default implementation throws an
UnsupportedCallbackException
.
IOException
UnsupportedCallbackException
protected void handleAliasPrivKeyCertRequest(SignatureKeyCallback callback, SignatureKeyCallback.AliasPrivKeyCertRequest request) throws IOException, UnsupportedCallbackException
SignatureKeyCallback
s with AliasPrivKeyCertRequest
s.
Called from handlePrivKeyCertRequest()
. Default implementation throws an
UnsupportedCallbackException
.
IOException
UnsupportedCallbackException
protected void handlePublicKeyBasedPrivKeyCertRequest(SignatureKeyCallback callback, SignatureKeyCallback.PublicKeyBasedPrivKeyCertRequest request) throws IOException, UnsupportedCallbackException
SignatureKeyCallback
s with PublicKeyBasedPrivKeyCertRequest
s.
Called from handlePrivKeyCertRequest()
. Default implementation throws an
UnsupportedCallbackException
.
IOException
UnsupportedCallbackException
protected final void handleSignatureVerificationKeyCallback(SignatureVerificationKeyCallback callback) throws UnsupportedCallbackException, IOException
SignatureVerificationKeyCallback
s. Called from handleInternal()
.
Default implementation delegates to specific handling methods.
UnsupportedCallbackException
IOException
handleX509CertificateRequest(com.sun.xml.wss.impl.callback.SignatureVerificationKeyCallback,
com.sun.xml.wss.impl.callback.SignatureVerificationKeyCallback.X509CertificateRequest)
protected final void handleX509CertificateRequest(SignatureVerificationKeyCallback callback, SignatureVerificationKeyCallback.X509CertificateRequest request) throws UnsupportedCallbackException, IOException
SignatureVerificationKeyCallback
s with X509CertificateRequest
s.
Called from handleSignatureVerificationKeyCallback()
. Default implementation delegates to specific
handling methods.
UnsupportedCallbackException
IOException
handlePublicKeyBasedRequest(com.sun.xml.wss.impl.callback.SignatureVerificationKeyCallback,
com.sun.xml.wss.impl.callback.SignatureVerificationKeyCallback.PublicKeyBasedRequest)
,
handleX509IssuerSerialBasedRequest(com.sun.xml.wss.impl.callback.SignatureVerificationKeyCallback,
com.sun.xml.wss.impl.callback.SignatureVerificationKeyCallback.X509IssuerSerialBasedRequest)
,
handleX509SubjectKeyIdentifierBasedRequest(com.sun.xml.wss.impl.callback.SignatureVerificationKeyCallback,
com.sun.xml.wss.impl.callback.SignatureVerificationKeyCallback.X509SubjectKeyIdentifierBasedRequest)
protected void handleX509SubjectKeyIdentifierBasedRequest(SignatureVerificationKeyCallback callback, SignatureVerificationKeyCallback.X509SubjectKeyIdentifierBasedRequest request) throws IOException, UnsupportedCallbackException
SignatureKeyCallback
s with PublicKeyBasedPrivKeyCertRequest
s.
Called from handlePrivKeyCertRequest()
. Default implementation throws an
UnsupportedCallbackException
.
IOException
UnsupportedCallbackException
protected void handleX509IssuerSerialBasedRequest(SignatureVerificationKeyCallback callback, SignatureVerificationKeyCallback.X509IssuerSerialBasedRequest request) throws IOException, UnsupportedCallbackException
SignatureKeyCallback
s with X509IssuerSerialBasedRequest
s.
Called from handlePrivKeyCertRequest()
. Default implementation throws an
UnsupportedCallbackException
.
IOException
UnsupportedCallbackException
protected void handlePublicKeyBasedRequest(SignatureVerificationKeyCallback callback, SignatureVerificationKeyCallback.PublicKeyBasedRequest request) throws IOException, UnsupportedCallbackException
SignatureKeyCallback
s with PublicKeyBasedRequest
s. Called
from handlePrivKeyCertRequest()
. Default implementation throws an
UnsupportedCallbackException
.
IOException
UnsupportedCallbackException
|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |