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