Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/phax/phase4.git
Browse files Browse the repository at this point in the history
  • Loading branch information
phax committed Aug 11, 2023
2 parents 6e21f73 + b4df5dc commit 5bf31d7
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@ private-*.properties*
release.properties
Main*ReceiverProd.java
zz
pom.xml.versionsBackup

.idea/
.settings/
target/
generated/

*.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ protected AbstractBDEWUserMessageBuilder ()
// Other crypt parameters are located in the PMode security part
cryptParams ().setKeyIdentifierType (DEFAULT_KEY_IDENTIFIER_TYPE);
cryptParams ().setKeyEncAlgorithm (ECryptoKeyEncryptionAlgorithm.ECDH_ES_KEYWRAP_AES_128);
cryptParams ().setEncryptSymmetricSessionKey (false);

/**
* Assumption: the BST "ValueType" attribute is set to
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ public AS4IncomingSecurityConfiguration setSecurityProviderCrypt (@Nullable fina
return this;
}

@Nonnull
public AS4IncomingSecurityConfiguration setSecurityProvider (@Nullable final Provider a)
{
return setSecurityProviderSign (a).setSecurityProviderCrypt (a);
}

@Nullable
public IAS4DecryptParameterModifier getDecryptParameterModifier ()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ public static AS4ReceiptMessage create (@Nonnull final ESoapVersion eSoapVersion
@Nonnull @Nonempty final String sMessageID,
@Nullable final Ebms3UserMessage aEbms3UserMessage,
@Nullable final Node aSoapDocument,
@Nonnull final boolean bShouldUseNonRepudiation)
final boolean bShouldUseNonRepudiation)
{
// Only for signed messages
final ICommonsList <ReferenceType> aDSRefs = getAllDSigReferences (aSoapDocument);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public enum EMEPBinding implements IHasID <String>
private final String m_sURI;
private final int m_nRequiredLegs;

EMEPBinding (@Nonnull @Nonempty final String sID, @Nonnull @Nonempty final String sURI, @Nonnull final int nRequiredLegs)
EMEPBinding (@Nonnull @Nonempty final String sID, @Nonnull @Nonempty final String sURI, final int nRequiredLegs)
{
m_sID = sID;
m_sURI = sURI;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ public interface IPModeManager
* @param aPMode
* The PMode to be created or updated.
*/
@Nonnull
void createOrUpdatePMode (@Nonnull PMode aPMode);

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
*
* @author Philip Helger
*/
@Nonnull
@MustImplementEqualsAndHashcode
public class PMode extends AbstractBusinessObject implements IPMode
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ public EChange updatePMode (@Nonnull final IPMode aPMode)
return EChange.CHANGED;
}

@Nonnull
public void createOrUpdatePMode (@Nonnull final PMode aPMode)
{
ValueEnforcer.notNull (aPMode, "PMode");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ public EChange updatePMode (@Nonnull final IPMode aNewPMode)
return EChange.CHANGED;
}

@Nonnull
public void createOrUpdatePMode (@Nonnull final PMode aPMode)
{
ValueEnforcer.notNull (aPMode, "PMode");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ public final EChange setMaxSizeKB (@Nullable final Integer aMaxSizeKB)
* @since 0.12.0
*/
@Nonnull
public final EChange setMaxSizeKB (@Nullable final int nMaxSizeKB)
public final EChange setMaxSizeKB (final int nMaxSizeKB)
{
return setMaxSizeKB (Integer.valueOf (nMaxSizeKB));
}
Expand Down

0 comments on commit 5bf31d7

Please sign in to comment.