Skip to content

Commit d8d790a

Browse files
committed
SWS-295
1 parent 8a3cf1f commit d8d790a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

security/src/main/java/org/springframework/ws/soap/security/wss4j/Wss4jSecurityInterceptor.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,11 @@ public void setSecurementEncryptionCrypto(Crypto securementEncryptionCrypto) {
162162
handler.setSecurementEncryptionCrypto(securementEncryptionCrypto);
163163
}
164164

165+
/** Sets the key name that needs to be sent for encryption. */
166+
public void setSecurementEncryptionEmbeddedKeyName(String securementEncryptionEmbeddedKeyName) {
167+
handler.setOption(WSHandlerConstants.ENC_KEY_NAME, securementEncryptionEmbeddedKeyName);
168+
}
169+
165170
/**
166171
* Defines which key identifier type to use. The WS-Security specifications recommends to use the identifier type
167172
* <code>IssuerSerial</code>. For possible encryption key identifier types refer to {@link

0 commit comments

Comments
 (0)