|
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.callback.AbstractCallbackHandler
org.springframework.ws.soap.security.wss4j.callback.AbstractWsPasswordCallbackHandler
public abstract class AbstractWsPasswordCallbackHandler
Abstract base class for CallbackHandler implementations that handle WSPasswordCallback callbacks.
| Field Summary |
|---|
| Fields inherited from class org.springframework.ws.soap.security.callback.AbstractCallbackHandler |
|---|
logger |
| Constructor Summary | |
|---|---|
AbstractWsPasswordCallbackHandler()
|
|
| Methods inherited from class org.springframework.ws.soap.security.callback.AbstractCallbackHandler |
|---|
handle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractWsPasswordCallbackHandler()
| Method Detail |
|---|
protected final void handleInternal(Callback callback)
throws IOException,
UnsupportedCallbackException
WSPasswordCallback callbacks. Inspects the callback usage
code, and calls the various handle* template methods.
handleInternal in class AbstractCallbackHandlercallback - the callback
IOException - in case of I/O errors
UnsupportedCallbackException - when the callback is not supported
protected void handleDecrypt(WSPasswordCallback callback)
throws IOException,
UnsupportedCallbackException
WSPasswordCallback.DECRYPT usage.
This method is invoked when WSS4J needs a password to get the private key of the identifier (username) from the keystore. WSS4J uses this private key to
decrypt the session (symmetric) key. Because the encryption method uses the public key to encrypt the session key
it needs no password (a public key is usually not protected by a password).
Default implementation throws an UnsupportedCallbackException.
IOException
UnsupportedCallbackException
protected void handleUsernameToken(WSPasswordCallback callback)
throws IOException,
UnsupportedCallbackException
WSPasswordCallback.USERNAME_TOKEN usage.
This method is invoked when WSS4J needs the password to fill in or to verify a UsernameToken.
Default implementation throws an UnsupportedCallbackException.
IOException
UnsupportedCallbackException
protected void handleSignature(WSPasswordCallback callback)
throws IOException,
UnsupportedCallbackException
WSPasswordCallback.SIGNATURE usage.
This method is invoked when WSS4J needs the password to get the private key of the identifier (username) from the keystore. WSS4J uses this private key to
produce a signature. The signature verfication uses the public key to verfiy the signature.
Default implementation throws an UnsupportedCallbackException.
IOException
UnsupportedCallbackException
protected void handleSecurityContextToken(WSPasswordCallback callback)
throws IOException,
UnsupportedCallbackException
WSPasswordCallback.SECURITY_CONTEXT_TOKEN usage.
This method is invoked when WSS4J needs the key to to be associated with a SecurityContextToken.
Default implementation throws an UnsupportedCallbackException.
IOException
UnsupportedCallbackException
protected void handleCustomToken(WSPasswordCallback callback)
throws IOException,
UnsupportedCallbackException
WSPasswordCallback.CUSTOM_TOKEN usage.
Default implementation throws an UnsupportedCallbackException.
IOException
UnsupportedCallbackException
protected void handleSecretKey(WSPasswordCallback callback)
throws IOException,
UnsupportedCallbackException
WSPasswordCallback.SECRET_KEY usage.
Default implementation throws an UnsupportedCallbackException.
IOException
UnsupportedCallbackException
protected void handleCleanup(CleanupCallback callback)
throws IOException,
UnsupportedCallbackException
CleanupCallback is passed to AbstractCallbackHandler.handle(Callback[]).
Default implementation throws an UnsupportedCallbackException.
IOException
UnsupportedCallbackException
protected void handleUsernameTokenPrincipal(UsernameTokenPrincipalCallback callback)
throws IOException,
UnsupportedCallbackException
UsernameTokenPrincipalCallback is passed to AbstractCallbackHandler.handle(Callback[]).
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 | |||||||||