Skip to main content

Hash

Hash

This class is used to calculate a one-way hash, the value of which is a fixed length 'string', from an arbitrary length data set.

Full qualification: com.florentis.signature.Hash

Summary

Method
add
clear
close
Property
type
hash

Methods

add()

This method adds data to the Hash object.

public native void add( data )
Parameters
The data item can be one of the types: boolean, byte, char, short, int, long, float, double, String, byte[]
Return Value
none

clear

This method clears the Hash object.

public native void clear()
Parameters
none
Return Value
none

close

This method "Closes" the object, releasing the underlying COM object (and thus freeing resources).

public native void close()
Parameters
none
Return Value
none

Properties

PropertyProperty TypeDescription
typeintRead/Write value sets the type of hashing algorithm to one of the following:

Hash.none
Hash.md5
Hash.sha1
Hash.sha224
Hash.sha256
Hash.sha384
Hash.sha512
hashStringRead-only String value