Interface MendixHashString

All Superinterfaces:
IMendixObjectMember<String>

public interface MendixHashString extends IMendixObjectMember<String>
Provides the interface for a Mendix attribute with type Hashed String.
  • Method Details

    • setValue

      void setValue(IContext context, String plainTextPassword)
      Hashes the provided plain-text password and sets the value of this instance of MendixHashString to the hashed password.
      Specified by:
      setValue in interface IMendixObjectMember<String>
      Parameters:
      context - the context for accessing the attribute
      plainTextPassword - the plain-text password to be hashed and then set
    • verifyValue

      boolean verifyValue(IContext context, String unhashedValue)
      Returns whether the specified unhashed value matches the value of this attribute.
      Parameters:
      context - the context for accessing the attribute
      unhashedValue - the value to hash and compare against the value of this attribute
      Returns:
      true if the value matches; false otherwise
    • getUnhashedValue

      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