public class CryptographyCallbackHandler extends AbstractCallbackHandler
UnsupportedCallbackException
,
so you only need to override those you need.logger
Constructor and Description |
---|
CryptographyCallbackHandler() |
Modifier and Type | Method and Description |
---|---|
protected void |
handleAliasPrivKeyCertRequest(com.sun.xml.wss.impl.callback.SignatureKeyCallback callback,
com.sun.xml.wss.impl.callback.SignatureKeyCallback.AliasPrivKeyCertRequest request)
Template method that handles
SignatureKeyCallback s with AliasPrivKeyCertRequest s. |
protected void |
handleAliasSymmetricKeyRequest(com.sun.xml.wss.impl.callback.DecryptionKeyCallback callback,
com.sun.xml.wss.impl.callback.DecryptionKeyCallback.AliasSymmetricKeyRequest request)
Template method that handles
DecryptionKeyCallback s with AliasSymmetricKeyRequest s. |
protected void |
handleAliasSymmetricKeyRequest(com.sun.xml.wss.impl.callback.EncryptionKeyCallback callback,
com.sun.xml.wss.impl.callback.EncryptionKeyCallback.AliasSymmetricKeyRequest request)
Template method that handles
EncryptionKeyCallback s with AliasSymmetricKeyRequest s. |
protected void |
handleAliasX509CertificateRequest(com.sun.xml.wss.impl.callback.EncryptionKeyCallback callback,
com.sun.xml.wss.impl.callback.EncryptionKeyCallback.AliasX509CertificateRequest request)
Template method that handles
EncryptionKeyCallback s with AliasX509CertificateRequest s. |
protected void |
handleCertificateValidationCallback(com.sun.xml.wss.impl.callback.CertificateValidationCallback callback)
Template method that handles
CertificateValidationCallback s. |
protected void |
handleDecryptionKeyCallback(com.sun.xml.wss.impl.callback.DecryptionKeyCallback callback)
Method that handles
DecryptionKeyCallback s. |
protected void |
handleDefaultPrivKeyCertRequest(com.sun.xml.wss.impl.callback.SignatureKeyCallback callback,
com.sun.xml.wss.impl.callback.SignatureKeyCallback.DefaultPrivKeyCertRequest request)
Template method that handles
SignatureKeyCallback s with DefaultPrivKeyCertRequest s. |
protected void |
handleDefaultX509CertificateRequest(com.sun.xml.wss.impl.callback.EncryptionKeyCallback callback,
com.sun.xml.wss.impl.callback.EncryptionKeyCallback.DefaultX509CertificateRequest request)
Template method that handles
EncryptionKeyCallback s with DefaultX509CertificateRequest s. |
protected void |
handleEncryptionKeyCallback(com.sun.xml.wss.impl.callback.EncryptionKeyCallback callback)
Method that handles
EncryptionKeyCallback s. |
protected void |
handleInternal(Callback callback)
Template method that should be implemented by subclasses.
|
protected void |
handlePrivateKeyRequest(com.sun.xml.wss.impl.callback.DecryptionKeyCallback callback,
com.sun.xml.wss.impl.callback.DecryptionKeyCallback.PrivateKeyRequest request)
Method that handles
DecryptionKeyCallback s with PrivateKeyRequest . |
protected void |
handlePrivKeyCertRequest(com.sun.xml.wss.impl.callback.SignatureKeyCallback cb,
com.sun.xml.wss.impl.callback.SignatureKeyCallback.PrivKeyCertRequest request)
Method that handles
SignatureKeyCallback s with PrivKeyCertRequest s. |
protected void |
handlePublicKeyBasedPrivKeyCertRequest(com.sun.xml.wss.impl.callback.SignatureKeyCallback callback,
com.sun.xml.wss.impl.callback.SignatureKeyCallback.PublicKeyBasedPrivKeyCertRequest request)
Template method that handles
SignatureKeyCallback s with PublicKeyBasedPrivKeyCertRequest s. |
protected void |
handlePublicKeyBasedPrivKeyRequest(com.sun.xml.wss.impl.callback.DecryptionKeyCallback callback,
com.sun.xml.wss.impl.callback.DecryptionKeyCallback.PublicKeyBasedPrivKeyRequest request)
Template method that handles
DecryptionKeyCallback s with PublicKeyBasedPrivKeyRequest s. |
protected void |
handlePublicKeyBasedRequest(com.sun.xml.wss.impl.callback.EncryptionKeyCallback callback,
com.sun.xml.wss.impl.callback.EncryptionKeyCallback.PublicKeyBasedRequest request)
Template method that handles
EncryptionKeyCallback s with PublicKeyBasedRequest s. |
protected void |
handlePublicKeyBasedRequest(com.sun.xml.wss.impl.callback.SignatureVerificationKeyCallback callback,
com.sun.xml.wss.impl.callback.SignatureVerificationKeyCallback.PublicKeyBasedRequest request)
Template method that handles
SignatureKeyCallback s with PublicKeyBasedRequest s. |
protected void |
handleSignatureKeyCallback(com.sun.xml.wss.impl.callback.SignatureKeyCallback callback)
Method that handles
SignatureKeyCallback s. |
protected void |
handleSignatureVerificationKeyCallback(com.sun.xml.wss.impl.callback.SignatureVerificationKeyCallback callback)
Method that handles
SignatureVerificationKeyCallback s. |
protected void |
handleSymmetricKeyRequest(com.sun.xml.wss.impl.callback.DecryptionKeyCallback callback,
com.sun.xml.wss.impl.callback.DecryptionKeyCallback.SymmetricKeyRequest request)
Method that handles
DecryptionKeyCallback s with SymmetricKeyRequest . |
protected void |
handleSymmetricKeyRequest(com.sun.xml.wss.impl.callback.EncryptionKeyCallback callback,
com.sun.xml.wss.impl.callback.EncryptionKeyCallback.SymmetricKeyRequest request)
Method that handles
EncryptionKeyCallback s with SymmetricKeyRequest . |
protected void |
handleX509CertificateBasedRequest(com.sun.xml.wss.impl.callback.DecryptionKeyCallback callback,
com.sun.xml.wss.impl.callback.DecryptionKeyCallback.X509CertificateBasedRequest request)
Template method that handles
DecryptionKeyCallback s with X509CertificateBasedRequest s. |
protected void |
handleX509CertificateRequest(com.sun.xml.wss.impl.callback.EncryptionKeyCallback callback,
com.sun.xml.wss.impl.callback.EncryptionKeyCallback.X509CertificateRequest request)
Method that handles
EncryptionKeyCallback s with X509CertificateRequest . |
protected void |
handleX509CertificateRequest(com.sun.xml.wss.impl.callback.SignatureVerificationKeyCallback callback,
com.sun.xml.wss.impl.callback.SignatureVerificationKeyCallback.X509CertificateRequest request)
Method that handles
SignatureVerificationKeyCallback s with X509CertificateRequest s. |
protected void |
handleX509IssuerSerialBasedRequest(com.sun.xml.wss.impl.callback.DecryptionKeyCallback callback,
com.sun.xml.wss.impl.callback.DecryptionKeyCallback.X509IssuerSerialBasedRequest request)
Template method that handles
DecryptionKeyCallback s with X509IssuerSerialBasedRequest s. |
protected void |
handleX509IssuerSerialBasedRequest(com.sun.xml.wss.impl.callback.SignatureVerificationKeyCallback callback,
com.sun.xml.wss.impl.callback.SignatureVerificationKeyCallback.X509IssuerSerialBasedRequest request)
Template method that handles
SignatureKeyCallback s with X509IssuerSerialBasedRequest s. |
protected void |
handleX509SubjectKeyIdentifierBasedRequest(com.sun.xml.wss.impl.callback.DecryptionKeyCallback callback,
com.sun.xml.wss.impl.callback.DecryptionKeyCallback.X509SubjectKeyIdentifierBasedRequest request)
Template method that handles
DecryptionKeyCallback s with X509SubjectKeyIdentifierBasedRequest s. |
protected void |
handleX509SubjectKeyIdentifierBasedRequest(com.sun.xml.wss.impl.callback.SignatureVerificationKeyCallback callback,
com.sun.xml.wss.impl.callback.SignatureVerificationKeyCallback.X509SubjectKeyIdentifierBasedRequest request)
Template method that handles
SignatureKeyCallback s with PublicKeyBasedPrivKeyCertRequest s. |
handle
protected final void handleInternal(Callback callback) throws IOException, UnsupportedCallbackException
AbstractCallbackHandler
handleInternal
in class AbstractCallbackHandler
IOException
UnsupportedCallbackException
protected void handleCertificateValidationCallback(com.sun.xml.wss.impl.callback.CertificateValidationCallback callback) throws IOException, UnsupportedCallbackException
CertificateValidationCallback
s. Called from
handleInternal()
. Default implementation throws an UnsupportedCallbackException
.protected final void handleDecryptionKeyCallback(com.sun.xml.wss.impl.callback.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(com.sun.xml.wss.impl.callback.DecryptionKeyCallback callback, com.sun.xml.wss.impl.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(com.sun.xml.wss.impl.callback.DecryptionKeyCallback callback, com.sun.xml.wss.impl.callback.DecryptionKeyCallback.PublicKeyBasedPrivKeyRequest request) throws IOException, UnsupportedCallbackException
DecryptionKeyCallback
s with PublicKeyBasedPrivKeyRequest
s.
Called from handlePrivateKeyRequest()
. Default implementation throws an
UnsupportedCallbackException
.protected void handleX509CertificateBasedRequest(com.sun.xml.wss.impl.callback.DecryptionKeyCallback callback, com.sun.xml.wss.impl.callback.DecryptionKeyCallback.X509CertificateBasedRequest request) throws IOException, UnsupportedCallbackException
DecryptionKeyCallback
s with X509CertificateBasedRequest
s.
Called from handlePrivateKeyRequest()
. Default implementation throws an
UnsupportedCallbackException
.protected void handleX509IssuerSerialBasedRequest(com.sun.xml.wss.impl.callback.DecryptionKeyCallback callback, com.sun.xml.wss.impl.callback.DecryptionKeyCallback.X509IssuerSerialBasedRequest request) throws IOException, UnsupportedCallbackException
DecryptionKeyCallback
s with X509IssuerSerialBasedRequest
s.
Called from handlePrivateKeyRequest()
. Default implementation throws an
UnsupportedCallbackException
.protected void handleX509SubjectKeyIdentifierBasedRequest(com.sun.xml.wss.impl.callback.DecryptionKeyCallback callback, com.sun.xml.wss.impl.callback.DecryptionKeyCallback.X509SubjectKeyIdentifierBasedRequest request) throws IOException, UnsupportedCallbackException
DecryptionKeyCallback
s with X509SubjectKeyIdentifierBasedRequest
s.
Called from handlePrivateKeyRequest()
. Default implementation throws an
UnsupportedCallbackException
.protected final void handleSymmetricKeyRequest(com.sun.xml.wss.impl.callback.DecryptionKeyCallback callback, com.sun.xml.wss.impl.callback.DecryptionKeyCallback.SymmetricKeyRequest request) throws IOException, UnsupportedCallbackException
DecryptionKeyCallback
s with SymmetricKeyRequest
. Called from
handleDecryptionKeyCallback()
. Default implementation delegates to specific handling methods.protected void handleAliasSymmetricKeyRequest(com.sun.xml.wss.impl.callback.DecryptionKeyCallback callback, com.sun.xml.wss.impl.callback.DecryptionKeyCallback.AliasSymmetricKeyRequest request) throws IOException, UnsupportedCallbackException
DecryptionKeyCallback
s with AliasSymmetricKeyRequest
s.
Called from handleSymmetricKeyRequest()
. Default implementation throws an
UnsupportedCallbackException
.protected final void handleEncryptionKeyCallback(com.sun.xml.wss.impl.callback.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(com.sun.xml.wss.impl.callback.EncryptionKeyCallback callback, com.sun.xml.wss.impl.callback.EncryptionKeyCallback.SymmetricKeyRequest request) throws IOException, UnsupportedCallbackException
EncryptionKeyCallback
s with SymmetricKeyRequest
. Called from
handleEncryptionKeyCallback()
. Default implementation delegates to specific handling methods.protected void handleAliasSymmetricKeyRequest(com.sun.xml.wss.impl.callback.EncryptionKeyCallback callback, com.sun.xml.wss.impl.callback.EncryptionKeyCallback.AliasSymmetricKeyRequest request) throws IOException, UnsupportedCallbackException
EncryptionKeyCallback
s with AliasSymmetricKeyRequest
s.
Called from handleSymmetricKeyRequest()
. Default implementation throws an
UnsupportedCallbackException
.protected final void handleX509CertificateRequest(com.sun.xml.wss.impl.callback.EncryptionKeyCallback callback, com.sun.xml.wss.impl.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(com.sun.xml.wss.impl.callback.EncryptionKeyCallback callback, com.sun.xml.wss.impl.callback.EncryptionKeyCallback.AliasX509CertificateRequest request) throws IOException, UnsupportedCallbackException
EncryptionKeyCallback
s with AliasX509CertificateRequest
s.
Called from handleX509CertificateRequest()
. Default implementation throws an
UnsupportedCallbackException
.protected void handleDefaultX509CertificateRequest(com.sun.xml.wss.impl.callback.EncryptionKeyCallback callback, com.sun.xml.wss.impl.callback.EncryptionKeyCallback.DefaultX509CertificateRequest request) throws IOException, UnsupportedCallbackException
EncryptionKeyCallback
s with DefaultX509CertificateRequest
s.
Called from handleX509CertificateRequest()
. Default implementation throws an
UnsupportedCallbackException
.protected void handlePublicKeyBasedRequest(com.sun.xml.wss.impl.callback.EncryptionKeyCallback callback, com.sun.xml.wss.impl.callback.EncryptionKeyCallback.PublicKeyBasedRequest request) throws IOException, UnsupportedCallbackException
EncryptionKeyCallback
s with PublicKeyBasedRequest
s. Called
from handleX509CertificateRequest()
. Default implementation throws an
UnsupportedCallbackException
.protected final void handleSignatureKeyCallback(com.sun.xml.wss.impl.callback.SignatureKeyCallback callback) throws IOException, UnsupportedCallbackException
SignatureKeyCallback
s. Called from handleInternal()
. Default
implementation delegates to specific handling methods.protected final void handlePrivKeyCertRequest(com.sun.xml.wss.impl.callback.SignatureKeyCallback cb, com.sun.xml.wss.impl.callback.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(com.sun.xml.wss.impl.callback.SignatureKeyCallback callback, com.sun.xml.wss.impl.callback.SignatureKeyCallback.DefaultPrivKeyCertRequest request) throws IOException, UnsupportedCallbackException
SignatureKeyCallback
s with DefaultPrivKeyCertRequest
s.
Called from handlePrivKeyCertRequest()
. Default implementation throws an
UnsupportedCallbackException
.protected void handleAliasPrivKeyCertRequest(com.sun.xml.wss.impl.callback.SignatureKeyCallback callback, com.sun.xml.wss.impl.callback.SignatureKeyCallback.AliasPrivKeyCertRequest request) throws IOException, UnsupportedCallbackException
SignatureKeyCallback
s with AliasPrivKeyCertRequest
s.
Called from handlePrivKeyCertRequest()
. Default implementation throws an
UnsupportedCallbackException
.protected void handlePublicKeyBasedPrivKeyCertRequest(com.sun.xml.wss.impl.callback.SignatureKeyCallback callback, com.sun.xml.wss.impl.callback.SignatureKeyCallback.PublicKeyBasedPrivKeyCertRequest request) throws IOException, UnsupportedCallbackException
SignatureKeyCallback
s with PublicKeyBasedPrivKeyCertRequest
s.
Called from handlePrivKeyCertRequest()
. Default implementation throws an
UnsupportedCallbackException
.protected final void handleSignatureVerificationKeyCallback(com.sun.xml.wss.impl.callback.SignatureVerificationKeyCallback callback) throws UnsupportedCallbackException, IOException
SignatureVerificationKeyCallback
s. Called from handleInternal()
.
Default implementation delegates to specific handling methods.protected final void handleX509CertificateRequest(com.sun.xml.wss.impl.callback.SignatureVerificationKeyCallback callback, com.sun.xml.wss.impl.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(com.sun.xml.wss.impl.callback.SignatureVerificationKeyCallback callback, com.sun.xml.wss.impl.callback.SignatureVerificationKeyCallback.X509SubjectKeyIdentifierBasedRequest request) throws IOException, UnsupportedCallbackException
SignatureKeyCallback
s with PublicKeyBasedPrivKeyCertRequest
s.
Called from handlePrivKeyCertRequest()
. Default implementation throws an
UnsupportedCallbackException
.protected void handleX509IssuerSerialBasedRequest(com.sun.xml.wss.impl.callback.SignatureVerificationKeyCallback callback, com.sun.xml.wss.impl.callback.SignatureVerificationKeyCallback.X509IssuerSerialBasedRequest request) throws IOException, UnsupportedCallbackException
SignatureKeyCallback
s with X509IssuerSerialBasedRequest
s.
Called from handlePrivKeyCertRequest()
. Default implementation throws an
UnsupportedCallbackException
.protected void handlePublicKeyBasedRequest(com.sun.xml.wss.impl.callback.SignatureVerificationKeyCallback callback, com.sun.xml.wss.impl.callback.SignatureVerificationKeyCallback.PublicKeyBasedRequest request) throws IOException, UnsupportedCallbackException
SignatureKeyCallback
s with PublicKeyBasedRequest
s. Called
from handlePrivKeyCertRequest()
. Default implementation throws an
UnsupportedCallbackException
.Copyright © 2020 Pivotal Software. All rights reserved.