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
SignatureKeyCallbacks with AliasPrivKeyCertRequests. |
protected void |
handleAliasSymmetricKeyRequest(com.sun.xml.wss.impl.callback.DecryptionKeyCallback callback,
com.sun.xml.wss.impl.callback.DecryptionKeyCallback.AliasSymmetricKeyRequest request)
Template method that handles
DecryptionKeyCallbacks with AliasSymmetricKeyRequests. |
protected void |
handleAliasSymmetricKeyRequest(com.sun.xml.wss.impl.callback.EncryptionKeyCallback callback,
com.sun.xml.wss.impl.callback.EncryptionKeyCallback.AliasSymmetricKeyRequest request)
Template method that handles
EncryptionKeyCallbacks with AliasSymmetricKeyRequests. |
protected void |
handleAliasX509CertificateRequest(com.sun.xml.wss.impl.callback.EncryptionKeyCallback callback,
com.sun.xml.wss.impl.callback.EncryptionKeyCallback.AliasX509CertificateRequest request)
Template method that handles
EncryptionKeyCallbacks with AliasX509CertificateRequests. |
protected void |
handleCertificateValidationCallback(com.sun.xml.wss.impl.callback.CertificateValidationCallback callback)
Template method that handles
CertificateValidationCallbacks. |
protected void |
handleDecryptionKeyCallback(com.sun.xml.wss.impl.callback.DecryptionKeyCallback callback)
Method that handles
DecryptionKeyCallbacks. |
protected void |
handleDefaultPrivKeyCertRequest(com.sun.xml.wss.impl.callback.SignatureKeyCallback callback,
com.sun.xml.wss.impl.callback.SignatureKeyCallback.DefaultPrivKeyCertRequest request)
Template method that handles
SignatureKeyCallbacks with DefaultPrivKeyCertRequests. |
protected void |
handleDefaultX509CertificateRequest(com.sun.xml.wss.impl.callback.EncryptionKeyCallback callback,
com.sun.xml.wss.impl.callback.EncryptionKeyCallback.DefaultX509CertificateRequest request)
Template method that handles
EncryptionKeyCallbacks with DefaultX509CertificateRequests. |
protected void |
handleEncryptionKeyCallback(com.sun.xml.wss.impl.callback.EncryptionKeyCallback callback)
Method that handles
EncryptionKeyCallbacks. |
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
DecryptionKeyCallbacks 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
SignatureKeyCallbacks with PrivKeyCertRequests. |
protected void |
handlePublicKeyBasedPrivKeyCertRequest(com.sun.xml.wss.impl.callback.SignatureKeyCallback callback,
com.sun.xml.wss.impl.callback.SignatureKeyCallback.PublicKeyBasedPrivKeyCertRequest request)
Template method that handles
SignatureKeyCallbacks with PublicKeyBasedPrivKeyCertRequests. |
protected void |
handlePublicKeyBasedPrivKeyRequest(com.sun.xml.wss.impl.callback.DecryptionKeyCallback callback,
com.sun.xml.wss.impl.callback.DecryptionKeyCallback.PublicKeyBasedPrivKeyRequest request)
Template method that handles
DecryptionKeyCallbacks with PublicKeyBasedPrivKeyRequests. |
protected void |
handlePublicKeyBasedRequest(com.sun.xml.wss.impl.callback.EncryptionKeyCallback callback,
com.sun.xml.wss.impl.callback.EncryptionKeyCallback.PublicKeyBasedRequest request)
Template method that handles
EncryptionKeyCallbacks with PublicKeyBasedRequests. |
protected void |
handlePublicKeyBasedRequest(com.sun.xml.wss.impl.callback.SignatureVerificationKeyCallback callback,
com.sun.xml.wss.impl.callback.SignatureVerificationKeyCallback.PublicKeyBasedRequest request)
Template method that handles
SignatureKeyCallbacks with PublicKeyBasedRequests. |
protected void |
handleSignatureKeyCallback(com.sun.xml.wss.impl.callback.SignatureKeyCallback callback)
Method that handles
SignatureKeyCallbacks. |
protected void |
handleSignatureVerificationKeyCallback(com.sun.xml.wss.impl.callback.SignatureVerificationKeyCallback callback)
Method that handles
SignatureVerificationKeyCallbacks. |
protected void |
handleSymmetricKeyRequest(com.sun.xml.wss.impl.callback.DecryptionKeyCallback callback,
com.sun.xml.wss.impl.callback.DecryptionKeyCallback.SymmetricKeyRequest request)
Method that handles
DecryptionKeyCallbacks 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
EncryptionKeyCallbacks 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
DecryptionKeyCallbacks with X509CertificateBasedRequests. |
protected void |
handleX509CertificateRequest(com.sun.xml.wss.impl.callback.EncryptionKeyCallback callback,
com.sun.xml.wss.impl.callback.EncryptionKeyCallback.X509CertificateRequest request)
Method that handles
EncryptionKeyCallbacks 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
SignatureVerificationKeyCallbacks with X509CertificateRequests. |
protected void |
handleX509IssuerSerialBasedRequest(com.sun.xml.wss.impl.callback.DecryptionKeyCallback callback,
com.sun.xml.wss.impl.callback.DecryptionKeyCallback.X509IssuerSerialBasedRequest request)
Template method that handles
DecryptionKeyCallbacks with X509IssuerSerialBasedRequests. |
protected void |
handleX509IssuerSerialBasedRequest(com.sun.xml.wss.impl.callback.SignatureVerificationKeyCallback callback,
com.sun.xml.wss.impl.callback.SignatureVerificationKeyCallback.X509IssuerSerialBasedRequest request)
Template method that handles
SignatureKeyCallbacks with X509IssuerSerialBasedRequests. |
protected void |
handleX509SubjectKeyIdentifierBasedRequest(com.sun.xml.wss.impl.callback.DecryptionKeyCallback callback,
com.sun.xml.wss.impl.callback.DecryptionKeyCallback.X509SubjectKeyIdentifierBasedRequest request)
Template method that handles
DecryptionKeyCallbacks with X509SubjectKeyIdentifierBasedRequests. |
protected void |
handleX509SubjectKeyIdentifierBasedRequest(com.sun.xml.wss.impl.callback.SignatureVerificationKeyCallback callback,
com.sun.xml.wss.impl.callback.SignatureVerificationKeyCallback.X509SubjectKeyIdentifierBasedRequest request)
Template method that handles
SignatureKeyCallbacks with PublicKeyBasedPrivKeyCertRequests. |
handleprotected final void handleInternal(Callback callback) throws IOException, UnsupportedCallbackException
AbstractCallbackHandlerhandleInternal in class AbstractCallbackHandlerIOExceptionUnsupportedCallbackExceptionprotected void handleCertificateValidationCallback(com.sun.xml.wss.impl.callback.CertificateValidationCallback callback)
throws IOException,
UnsupportedCallbackException
CertificateValidationCallbacks. Called from
handleInternal(). Default implementation throws an UnsupportedCallbackException.protected final void handleDecryptionKeyCallback(com.sun.xml.wss.impl.callback.DecryptionKeyCallback callback)
throws IOException,
UnsupportedCallbackException
DecryptionKeyCallbacks. Called from handleInternal(). Default
implementation delegates to specific handling methods.IOExceptionUnsupportedCallbackExceptionhandlePrivateKeyRequest(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
DecryptionKeyCallbacks with PrivateKeyRequest . Called from
handleDecryptionKeyCallback(). Default implementation delegates to specific handling methods.IOExceptionUnsupportedCallbackExceptionhandlePublicKeyBasedPrivKeyCertRequest(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
DecryptionKeyCallbacks with PublicKeyBasedPrivKeyRequests.
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
DecryptionKeyCallbacks with X509CertificateBasedRequests.
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
DecryptionKeyCallbacks with X509IssuerSerialBasedRequests.
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
DecryptionKeyCallbacks with X509SubjectKeyIdentifierBasedRequests.
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
DecryptionKeyCallbacks 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
DecryptionKeyCallbacks with AliasSymmetricKeyRequests.
Called from handleSymmetricKeyRequest(). Default implementation throws an
UnsupportedCallbackException.protected final void handleEncryptionKeyCallback(com.sun.xml.wss.impl.callback.EncryptionKeyCallback callback)
throws IOException,
UnsupportedCallbackException
EncryptionKeyCallbacks. Called from handleInternal(). Default
implementation delegates to specific handling methods.IOExceptionUnsupportedCallbackExceptionhandleSymmetricKeyRequest(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
EncryptionKeyCallbacks 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
EncryptionKeyCallbacks with AliasSymmetricKeyRequests.
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
EncryptionKeyCallbacks with X509CertificateRequest . Called from
handleEncryptionKeyCallback(). Default implementation delegates to specific handling methods.IOExceptionUnsupportedCallbackExceptionhandleAliasX509CertificateRequest(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
EncryptionKeyCallbacks with AliasX509CertificateRequests.
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
EncryptionKeyCallbacks with DefaultX509CertificateRequests.
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
EncryptionKeyCallbacks with PublicKeyBasedRequests. Called
from handleX509CertificateRequest(). Default implementation throws an
UnsupportedCallbackException.protected final void handleSignatureKeyCallback(com.sun.xml.wss.impl.callback.SignatureKeyCallback callback)
throws IOException,
UnsupportedCallbackException
SignatureKeyCallbacks. 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
SignatureKeyCallbacks with PrivKeyCertRequests. Called from
handleSignatureKeyCallback(). Default implementation delegates to specific handling methods.IOExceptionUnsupportedCallbackExceptionhandleDefaultPrivKeyCertRequest(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
SignatureKeyCallbacks with DefaultPrivKeyCertRequests.
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
SignatureKeyCallbacks with AliasPrivKeyCertRequests.
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
SignatureKeyCallbacks with PublicKeyBasedPrivKeyCertRequests.
Called from handlePrivKeyCertRequest(). Default implementation throws an
UnsupportedCallbackException.protected final void handleSignatureVerificationKeyCallback(com.sun.xml.wss.impl.callback.SignatureVerificationKeyCallback callback)
throws UnsupportedCallbackException,
IOException
SignatureVerificationKeyCallbacks. 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
SignatureVerificationKeyCallbacks with X509CertificateRequests.
Called from handleSignatureVerificationKeyCallback(). Default implementation delegates to specific
handling methods.UnsupportedCallbackExceptionIOExceptionhandlePublicKeyBasedRequest(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
SignatureKeyCallbacks with PublicKeyBasedPrivKeyCertRequests.
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
SignatureKeyCallbacks with X509IssuerSerialBasedRequests.
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
SignatureKeyCallbacks with PublicKeyBasedRequests. Called
from handlePrivKeyCertRequest(). Default implementation throws an
UnsupportedCallbackException.