Package org.apache.wss4j.stax.test.utils
Class SecretKeyCallbackHandler
- java.lang.Object
-
- org.apache.wss4j.stax.test.utils.SecretKeyCallbackHandler
-
- All Implemented Interfaces:
CallbackHandler
public class SecretKeyCallbackHandler extends Object implements CallbackHandler
A Callback Handler implementation for the case of storing a secret key.
-
-
Constructor Summary
Constructors Constructor Description SecretKeyCallbackHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSecretKey(String identifier, byte[] secretKey)
void
handle(Callback[] callbacks)
void
setOutboundSecret(byte[] secret)
-
-
-
Method Detail
-
handle
public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException
- Specified by:
handle
in interfaceCallbackHandler
- Throws:
IOException
UnsupportedCallbackException
-
addSecretKey
public void addSecretKey(String identifier, byte[] secretKey)
-
setOutboundSecret
public void setOutboundSecret(byte[] secret) throws WSSecurityException
- Throws:
WSSecurityException
-
-