Interface MendixHashString
- All Superinterfaces:
IMendixObjectMember<String>
Provides the interface for a Mendix attribute with type Hashed String.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.mendix.systemwideinterfaces.core.IMendixObjectMember
IMendixObjectMember.MemberState, IMendixObjectMember.MemberValueState
-
Method Summary
Modifier and TypeMethodDescriptiongetUnhashedValue
(IContext context) Returns the unhashed value of this attribute if it is available.boolean
isEmpty()
Returns whether the value of this attribute is empty.void
Hashes the provided plain-text password and sets the value of this instance ofMendixHashString
to the hashed password.boolean
verifyValue
(IContext context, String unhashedValue) Returns whether the specified unhashed value matches the value of this attribute.Methods inherited from interface com.mendix.systemwideinterfaces.core.IMendixObjectMember
getMemberValueState, getName, getOriginalValue, getState, getValue, getValueFromString, hasReadAccess, hasWriteAccess, isVirtual, parseValueFromString, parseValueToString, setValue, toString
-
Method Details
-
setValue
Hashes the provided plain-text password and sets the value of this instance ofMendixHashString
to the hashed password.- Specified by:
setValue
in interfaceIMendixObjectMember<String>
- Parameters:
context
- the context for accessing the attributeplainTextPassword
- the plain-text password to be hashed and then set
-
verifyValue
Returns whether the specified unhashed value matches the value of this attribute.- Parameters:
context
- the context for accessing the attributeunhashedValue
- the value to hash and compare against the value of this attribute- Returns:
- true if the value matches; false otherwise
-
getUnhashedValue
Returns the unhashed value of this attribute if it is available.- Parameters:
context
- the context for accessing the attribute- Returns:
- the unhashed value if it is available; null otherwise
-
isEmpty
boolean isEmpty()Returns whether the value of this attribute is empty.- Returns:
- true if the value is empty; false otherwise
-