Mendix Runtime
Documentation for the Mendix Runtime Environment API
com.mendix.core.objectmanagement.member.MendixHashString Class Reference

Inherits MendixObjectMember< String >.

List of all members.

Classes

class  HashStruct

Public Member Functions

 MendixHashString (String name)
 MendixHashString (String name, boolean v, String virtualActionName)
String getValueFromString (String s)
void parseValueFromString (IContext context, String s)
synchronized void setValue (IContext context, String unhashed)
synchronized void setInitialValue (String unhashed)
synchronized boolean verifyValue (IContext context, String unhashed)
synchronized void setHash (IContext context, String hashedValue)
synchronized void setInitialHash (String hashedValue)
String getUnhashedValue (IContext context)

Detailed Description

Hash string object member. Can be used for hashed string values such as passwords.


Constructor & Destructor Documentation

com.mendix.core.objectmanagement.member.MendixHashString.MendixHashString ( String  name)
Parameters:
namethe name of the hashstring
com.mendix.core.objectmanagement.member.MendixHashString.MendixHashString ( String  name,
boolean  v,
String  virtualActionName 
)

Creates MendixHashString with the given virtual settings

Parameters:
namethe name of the hashstring
vboolean defining whether this primitive is virtual or not
virtualActionNamethe CoreAction which will be called when using getValue

Member Function Documentation

String com.mendix.core.objectmanagement.member.MendixHashString.getUnhashedValue ( IContext  context)

Used by DataValidation

String com.mendix.core.objectmanagement.member.MendixHashString.getValueFromString ( String  s)
void com.mendix.core.objectmanagement.member.MendixHashString.parseValueFromString ( IContext  context,
String  s 
)

Parse value of this ObjectMember from a String

Parameters:
context
s
synchronized void com.mendix.core.objectmanagement.member.MendixHashString.setHash ( IContext  context,
String  hashedValue 
)

Set already hashed value

Parameters:
context
hashedValue
synchronized void com.mendix.core.objectmanagement.member.MendixHashString.setInitialHash ( String  hashedValue)
synchronized void com.mendix.core.objectmanagement.member.MendixHashString.setInitialValue ( String  unhashed)
synchronized void com.mendix.core.objectmanagement.member.MendixHashString.setValue ( IContext  context,
String  unhashed 
)
synchronized boolean com.mendix.core.objectmanagement.member.MendixHashString.verifyValue ( IContext  context,
String  unhashed 
)

Verify a hash value

Parameters:
context
unhashed
Returns:
true if and only if hashing the unhashed leads to the same hash

The documentation for this class was generated from the following file: