Commit 2246ffc3 authored by Enriko Käsper's avatar Enriko Käsper
Browse files

Merge branch 'develop' into 'master'

Release: merge 'develop' into 'master' created by Enriko Käsper

See merge request teis/auth-service!15
parents 4711f385 d2758859
theGroup=ee.sm.ti.teis
theVersion=0.3.0
commonsVersion=0.23.1
commonApiGatewayVersion=0.24.0
schedulerVersion=0.4.0
pluginVersion=0.0.19-SNAPSHOT
theVersion=0.4.0
commonsVersion=1.0.0
commonApiGatewayVersion=0.25.0
schedulerVersion=0.5.0
pluginVersion=1.0.0
mapstructVersion=1.3.0.Final
......@@ -4,10 +4,13 @@ import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import java.util.HashSet;
import java.util.Set;
import static ee.sm.ti.teis.types.sensitive.ObscuringUtils.obscureFieldValue;
@Data
@Builder
@AllArgsConstructor
......@@ -18,4 +21,14 @@ public class UserInfo {
private String personalCode;
@Builder.Default
private Set<String> roles = new HashSet<>();
@ToString.Include
private String fullName() {
return obscureFieldValue(fullName);
}
@ToString.Include
private String personalCode() {
return obscureFieldValue(personalCode);
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment