From d8d790a2a2ecd1231544f750fd306efb7b32f20f Mon Sep 17 00:00:00 2001 From: Arjen Poutsma Date: Wed, 27 Feb 2008 14:21:43 +0000 Subject: [PATCH] SWS-295 --- .../ws/soap/security/wss4j/Wss4jSecurityInterceptor.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/security/src/main/java/org/springframework/ws/soap/security/wss4j/Wss4jSecurityInterceptor.java b/security/src/main/java/org/springframework/ws/soap/security/wss4j/Wss4jSecurityInterceptor.java index febb3fa0..58c610c1 100755 --- a/security/src/main/java/org/springframework/ws/soap/security/wss4j/Wss4jSecurityInterceptor.java +++ b/security/src/main/java/org/springframework/ws/soap/security/wss4j/Wss4jSecurityInterceptor.java @@ -162,6 +162,11 @@ public class Wss4jSecurityInterceptor extends AbstractWsSecurityInterceptor impl handler.setSecurementEncryptionCrypto(securementEncryptionCrypto); } + /** Sets the key name that needs to be sent for encryption. */ + public void setSecurementEncryptionEmbeddedKeyName(String securementEncryptionEmbeddedKeyName) { + handler.setOption(WSHandlerConstants.ENC_KEY_NAME, securementEncryptionEmbeddedKeyName); + } + /** * Defines which key identifier type to use. The WS-Security specifications recommends to use the identifier type * IssuerSerial. For possible encryption key identifier types refer to {@link