Package com.platformlib.process.core
Class MaskedPassword
- java.lang.Object
-
- com.platformlib.process.core.MaskedPassword
-
- All Implemented Interfaces:
MaskedValue,javax.security.auth.Destroyable
public final class MaskedPassword extends java.lang.Object implements MaskedValue
Password which value is masked with ***** in logs.
-
-
Constructor Summary
Constructors Constructor Description MaskedPassword(byte[] value)Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()java.lang.StringgetSourceValue()Get source value.booleanisDestroyed()static MaskedPasswordof(java.lang.String value)Instance factory.java.lang.StringtoString()
-
-
-
Method Detail
-
of
public static MaskedPassword of(java.lang.String value)
Instance factory.- Parameters:
value- to be masked in logs- Returns:
- Return new instance
-
getSourceValue
public java.lang.String getSourceValue()
Description copied from interface:MaskedValueGet source value.- Specified by:
getSourceValuein interfaceMaskedValue- Returns:
- Returns source value
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
destroy
public void destroy()
- Specified by:
destroyin interfacejavax.security.auth.Destroyable
-
isDestroyed
public boolean isDestroyed()
- Specified by:
isDestroyedin interfacejavax.security.auth.Destroyable
-
-