Namespace: OpenEdge.Security.Provider
Type: Class UserTablePasswordProvider
Parent Classes:
Inherits: Progress.Lang.Object
Implements: OpenEdge.Security.Provider.IPasswordPolicyProvider


Copyright (c) 2016 by Progress Software Corporation. All rights reserved.
File:UserTablePasswordProvider
Purpose:Default password policy provider for _USER tables.
Author(s):pjudge
Created:Mon Feb 29 15:52:19 EST 2016
Notes:* Uses the ENCODE hash algorithm
/* Returns a per-user salt used for hashing (typically) passwords



Method Summary
  Options Name Purpose
  RAW GetUserSalt (handle) /* Returns a per-user salt used for hashing (typically) passwords @param handle The _User buffer to use @return raw A salt to use for hashing */
  CHARACTER HashPassword (character, raw) /* Hashes a password for storage in the _User table. The default implementation uses ENCODE() and so no salt is used. @param character A mandatory clear-text password @param raw An optional salt value @return character A string representation of the hashed password */

Method Detail
Top

RAW GetUserSalt (handle)

/* Returns a per-user salt used for hashing (typically) passwords
Parameters:
phUserTableBuffer HANDLE
 
Returns RAW
  raw A salt to use for hashing
Top

CHARACTER HashPassword (character, raw)

/* Hashes a password for storage in the _User table.
The default implementation uses ENCODE() and so
no salt is used.
Parameters:
pcPassword CHARACTER
 
prSalt RAW
 
Returns CHARACTER
  character A string representation of the hashed password