Class SecuredValue<T>
java.lang.Object
com.github.toolarium.common.security.SecuredValue<T>
- All Implemented Interfaces:
ISecuredValue<T>,Serializable
Implements the
ISecuredValue.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSecuredValue(T value) Constructor for SecuredValueSecuredValue(T value, String securedValue) Constructor for SecuredValue -
Method Summary
-
Constructor Details
-
SecuredValue
Constructor for SecuredValue- Parameters:
value- the value
-
SecuredValue
Constructor for SecuredValue- Parameters:
value- the valuesecuredValue- the secured value
-
-
Method Details
-
getValue
Description copied from interface:ISecuredValueGet the value- Specified by:
getValuein interfaceISecuredValue<T>- Returns:
- the value
- See Also:
-
setValue
Sets the value- Parameters:
value- the value- Returns:
- the secured value
-
setValue
Sets the value- Parameters:
value- the valuesecuredValue- the secured value- Returns:
- the secured value
-
hasSecuredValue
public boolean hasSecuredValue()Description copied from interface:ISecuredValueCheck if it has a secured value- Specified by:
hasSecuredValuein interfaceISecuredValue<T>- Returns:
- true if it has a secured value
- See Also:
-
getSecuredValue
Description copied from interface:ISecuredValueGet the secured value, e.g. to write into a log or a console- Specified by:
getSecuredValuein interfaceISecuredValue<T>- Returns:
- the secured value
- See Also:
-
hashCode
public int hashCode() -
equals
-
toString
-