You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 27, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 27, 2023. It is now read-only.
I see, thanks. An interesting case, I'll try to look into implementing it. What kind of data do you store in the "value" field? I'm asking because I'm curious what needs to be masked from toString which is, at the same time, hardcoded in the sources.
I see, but still the masked values 1 and 2 are hardcoded. What business case can be modeled with hardcoded constant values which need to be masked in toString? Are these some keys or other kinds of identifiers?
Activity
kciesielski commentedon Aug 16, 2018
@kenchan0130 Do you mean something like:
?
kenchan0130 commentedon Aug 16, 2018
@kciesielski
For example,
like this.
kciesielski commentedon Aug 16, 2018
I see, thanks. An interesting case, I'll try to look into implementing it. What kind of data do you store in the "value" field? I'm asking because I'm curious what needs to be masked from
toStringwhich is, at the same time, hardcoded in the sources.kenchan0130 commentedon Aug 16, 2018
I'm so sorry.
That example was not concrete.
Specifically, it is here.
Suppose that
SomeLibraryTraitis an uncontrolled trait provided by a library and so on.Certainly, I can also create custom trait with masking string like:
kciesielski commentedon Aug 16, 2018
I see, but still the masked values
1and2are hardcoded. What business case can be modeled with hardcoded constant values which need to be masked intoString? Are these some keys or other kinds of identifiers?kenchan0130 commentedon Aug 17, 2018
I have the case I want to mask in a complex situation.
In the case where it is important personal information when two items are combined,
I want to mask some strings
For example,
Of course, because of the different responsibilities, there may be some opinion that it should be marked on the upper layer like:
However, in this case, some developers may forget to mask value because
EmployeePrivateInfois not primitive value.kciesielski commentedon Aug 17, 2018
Thanks for explaining. I can see how supporting abstract classes fits to this case. I will look into supporting abstract classes.