-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added customizer and improved clone API
- Loading branch information
Showing
4 changed files
with
91 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
phase4-lib/src/main/java/com/helger/phase4/crypto/IWSSecEncryptCustomizer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package com.helger.phase4.crypto; | ||
|
||
import javax.annotation.Nonnull; | ||
|
||
import org.apache.wss4j.dom.message.WSSecEncrypt; | ||
|
||
/** | ||
* Customize the {@link WSSecEncrypt} object additional to what is possible via | ||
* the {@link AS4CryptParams} class. | ||
* | ||
* @author Philip Helger | ||
* @since 2.1.4 | ||
*/ | ||
@FunctionalInterface | ||
public interface IWSSecEncryptCustomizer | ||
{ | ||
/** | ||
* The customization happens AFTER all the default properties are applied. So | ||
* be sure you know what to do when overwriting stuff. | ||
* | ||
* @param aWSSecEncrypt | ||
* The object to modify. May not be <code>null</code>. | ||
*/ | ||
void customize (@Nonnull WSSecEncrypt aWSSecEncrypt); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters