Interface MendixHashString
-
- All Superinterfaces:
IMendixObjectMember<java.lang.String>
public interface MendixHashString extends IMendixObjectMember<java.lang.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
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description java.lang.StringgetUnhashedValue(IContext context)Returns the unhashed value of this attribute if it is available.booleanisEmpty()Returns whether the value of this attribute is empty.voidsetHash(IContext context, java.lang.String hashedValue)Deprecated.usesetValue(IContext, String)insteadvoidsetValue(IContext context, java.lang.String plainTextPassword)Hashes the provided plain-text password and sets the value of this instance ofMendixHashStringto the hashed password.booleanverifyValue(IContext context, java.lang.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 Detail
-
setHash
@Deprecated void setHash(IContext context, java.lang.String hashedValue)
Deprecated.usesetValue(IContext, String)insteadSets the hash value of this hash-string object.- Parameters:
context- the context for accessing the attributehashedValue- the hashed value to set
-
setValue
void setValue(IContext context, java.lang.String plainTextPassword)
Hashes the provided plain-text password and sets the value of this instance ofMendixHashStringto the hashed password.- Specified by:
setValuein interfaceIMendixObjectMember<java.lang.String>- Parameters:
context- the context for accessing the attributeplainTextPassword- the plain-text password to be hashed and then set
-
verifyValue
boolean verifyValue(IContext context, java.lang.String unhashedValue)
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
java.lang.String getUnhashedValue(IContext context)
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
-
-