diff options
3 files changed, 6 insertions, 0 deletions
diff --git a/rest-services/model/src/main/java/org/onap/dcaegen2/services/sdk/model/streams/dmaap/DataRouter.java b/rest-services/model/src/main/java/org/onap/dcaegen2/services/sdk/model/streams/dmaap/DataRouter.java index 38adb197..9c531e0f 100644 --- a/rest-services/model/src/main/java/org/onap/dcaegen2/services/sdk/model/streams/dmaap/DataRouter.java +++ b/rest-services/model/src/main/java/org/onap/dcaegen2/services/sdk/model/streams/dmaap/DataRouter.java @@ -21,12 +21,14 @@ package org.onap.dcaegen2.services.sdk.model.streams.dmaap; import com.google.gson.annotations.SerializedName; +import org.immutables.value.Value; import org.jetbrains.annotations.Nullable; /** * @author <a href="mailto:piotr.jaszczyk@nokia.com">Piotr Jaszczyk</a> * @since 1.1.4 */ + public interface DataRouter { /** @@ -42,6 +44,7 @@ public interface DataRouter { * <li>the publisher uses to authenticate to Data Router.</li> * </ul> */ + @Value.Redacted @SerializedName("username") @Nullable String username(); @@ -52,6 +55,7 @@ public interface DataRouter { * <li>the publisher uses to authenticate to Data Router.</li> * </ul> */ + @Value.Redacted @SerializedName("password") @Nullable String password(); } diff --git a/rest-services/model/src/main/java/org/onap/dcaegen2/services/sdk/model/streams/dmaap/DataRouterSink.java b/rest-services/model/src/main/java/org/onap/dcaegen2/services/sdk/model/streams/dmaap/DataRouterSink.java index bfe31182..1d08374c 100644 --- a/rest-services/model/src/main/java/org/onap/dcaegen2/services/sdk/model/streams/dmaap/DataRouterSink.java +++ b/rest-services/model/src/main/java/org/onap/dcaegen2/services/sdk/model/streams/dmaap/DataRouterSink.java @@ -30,6 +30,7 @@ import org.onap.dcaegen2.services.sdk.model.streams.SinkStream; * @author <a href="mailto:piotr.jaszczyk@nokia.com">Piotr Jaszczyk</a> * @since 1.1.4 */ +@Value.Style(redactedMask = "***") @Gson.TypeAdapters @Value.Immutable public interface DataRouterSink extends DataRouter, SinkStream { diff --git a/rest-services/model/src/main/java/org/onap/dcaegen2/services/sdk/model/streams/dmaap/DataRouterSource.java b/rest-services/model/src/main/java/org/onap/dcaegen2/services/sdk/model/streams/dmaap/DataRouterSource.java index 4ba81acb..e10a3d7a 100644 --- a/rest-services/model/src/main/java/org/onap/dcaegen2/services/sdk/model/streams/dmaap/DataRouterSource.java +++ b/rest-services/model/src/main/java/org/onap/dcaegen2/services/sdk/model/streams/dmaap/DataRouterSource.java @@ -30,6 +30,7 @@ import org.onap.dcaegen2.services.sdk.model.streams.SourceStream; * @author <a href="mailto:piotr.jaszczyk@nokia.com">Piotr Jaszczyk</a> * @since 1.1.4 */ +@Value.Style(redactedMask = "***") @Gson.TypeAdapters @Value.Immutable public interface DataRouterSource extends DataRouter, SourceStream { |