diff options
author | kjaniak <kornel.janiak@nokia.com> | 2019-04-26 15:13:18 +0200 |
---|---|---|
committer | Kornel Janiak <kornel.janiak@nokia.com> | 2019-05-09 05:55:08 +0000 |
commit | 9c13ba3e6a41f64d1bad23ccd9a876bee615297d (patch) | |
tree | 39ed5c0bd5f5d65fdd4753d8d5f2cf582d05f062 /rest-services | |
parent | 0619d14f7f442c25dbf3829f087a283d43e3e82d (diff) |
Mask password in Data Router
Change-Id: I57a7cb841e8007464d45f11f3e9c6608f1b83bd4
Issue-ID: DCAEGEN2-1449
Signed-off-by: kjaniak <kornel.janiak@nokia.com>
Diffstat (limited to 'rest-services')
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 { |