Skip to content

Commit

Permalink
Bump dapla-dlp-pseudo-func which includes the new MapFailureStrategy …
Browse files Browse the repository at this point in the history
…parameter.
  • Loading branch information
Skaar, Bjørn-Andre committed Apr 8, 2024
1 parent 12258e1 commit 1cf7f75
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<github.repository>statisticsnorway/dapla-dlp-pseudo-core</github.repository>

<!-- Dependency versions -->
<dapla-dlp-pseudo-func.version>1.3.2</dapla-dlp-pseudo-func.version>
<dapla-dlp-pseudo-func.version>1.3.3-SNAPSHOT</dapla-dlp-pseudo-func.version>
<guava.version>32.0.0-jre</guava.version>
<jsonassert.version>1.5.1</jsonassert.version>
<logback.version>1.4.6</logback.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import no.ssb.dapla.dlp.pseudo.func.fpe.Alphabets;
import no.ssb.dapla.dlp.pseudo.func.fpe.FpeFunc;
import no.ssb.dapla.dlp.pseudo.func.fpe.FpeFuncConfig;
import no.ssb.dapla.dlp.pseudo.func.map.MapFailureStrategy;
import no.ssb.dapla.dlp.pseudo.func.map.MapFunc;
import no.ssb.dapla.dlp.pseudo.func.map.MapFuncConfig;
import no.ssb.dapla.dlp.pseudo.func.redact.RedactFunc;
Expand Down Expand Up @@ -54,6 +55,7 @@ private static PseudoFuncConfigPreset sidMappingPseudoFuncConfigPreset(String fu
.staticParam(MapFuncConfig.Param.CONTEXT, "sid")
.requiredParam(String.class, TinkFpeFuncConfig.Param.KEY_ID)
.optionalParam(String.class, MapFuncConfig.Param.SNAPSHOT_DATE)
.optionalParam(MapFailureStrategy.class, MapFuncConfig.Param.MAP_FAILURE_STRATEGY, MapFailureStrategy.RETURN_ORIGINAL)
.build();
}

Expand All @@ -66,6 +68,7 @@ private static PseudoFuncConfigPreset sidMappingAndTinkFpePseudoFuncConfigPreset
.optionalParam(UnknownCharacterStrategy.class, TinkFpeFuncConfig.Param.UNKNOWN_CHARACTER_STRATEGY, UnknownCharacterStrategy.FAIL)
.optionalParam(String.class, TinkFpeFuncConfig.Param.TWEAK)
.optionalParam(Character.class, TinkFpeFuncConfig.Param.REDACT_CHAR)
.optionalParam(MapFailureStrategy.class, MapFuncConfig.Param.MAP_FAILURE_STRATEGY, MapFailureStrategy.RETURN_ORIGINAL)
.build();
}

Expand All @@ -75,6 +78,7 @@ private static PseudoFuncConfigPreset sidMappingAndTinkDaeadPseudoFuncConfigPres
.staticParam(MapAndEncryptFuncConfig.Param.ENCRYPTION_FUNC_IMPL, TinkDaeadFunc.class.getName())
.optionalParam(String.class, MapFuncConfig.Param.SNAPSHOT_DATE)
.requiredParam(String.class, TinkDaeadFuncConfig.Param.KEY_ID)
.optionalParam(MapFailureStrategy.class, MapFuncConfig.Param.MAP_FAILURE_STRATEGY, MapFailureStrategy.RETURN_ORIGINAL)
.build();
}

Expand Down

0 comments on commit 1cf7f75

Please sign in to comment.