|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.quercus.module.AbstractQuercusModule
com.caucho.quercus.lib.HashModule
public class HashModule
Hash functions.
This module uses the MessageDigest
class to calculate
digests. Typical java installations support MD2, MD5, SHA1, SHA256, SHA384,
and SHA512.
Nested Class Summary | |
---|---|
static class |
HashModule.HashContext
|
static class |
HashModule.HashDigestContext
|
static class |
HashModule.HashMacContext
|
Field Summary | |
---|---|
static int |
HASH_HMAC
|
Fields inherited from class com.caucho.quercus.module.AbstractQuercusModule |
---|
PHP_INI_ALL, PHP_INI_PERDIR, PHP_INI_SYSTEM, PHP_INI_USER |
Constructor Summary | |
---|---|
HashModule()
|
Method Summary | |
---|---|
java.lang.String[] |
getLoadedExtensions()
Returns the extensions loaded by the module. |
static Value |
hash_algos(Env env)
Returns the list of known algorithms |
HashModule.HashContext |
hash_copy(HashModule.HashContext context)
Copies a hash instance |
Value |
hash_file(Env env,
java.lang.String algorithm,
Path path,
boolean isBinary)
Hashes a file |
Value |
hash_final(Env env,
HashModule.HashContext context,
boolean isBinary)
Returns the final hash value |
Value |
hash_hmac_file(Env env,
java.lang.String algorithm,
Path path,
StringValue key,
boolean isBinary)
Hashes a file with the algorithm. |
Value |
hash_hmac(Env env,
java.lang.String algorithm,
StringValue data,
StringValue key,
boolean isBinary)
Hashes a string with the algorithm. |
HashModule.HashContext |
hash_init(Env env,
java.lang.String algorithm,
int options,
StringValue keyString)
Initialize a hash context. |
Value |
hash_update_file(Env env,
HashModule.HashContext context,
Path path)
Updates the hash with more data |
int |
hash_update_stream(Env env,
HashModule.HashContext context,
java.io.InputStream is,
int length)
Updates the hash with more data |
Value |
hash_update(Env env,
HashModule.HashContext context,
StringValue value)
Updates the hash with more data |
Value |
hash(Env env,
java.lang.String algorithm,
StringValue string,
boolean isBinary)
Hashes a string |
Methods inherited from class com.caucho.quercus.module.AbstractQuercusModule |
---|
addConstant, addConstant, addConstant, getConstMap, getIniDefinitions |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int HASH_HMAC
Constructor Detail |
---|
public HashModule()
Method Detail |
---|
public java.lang.String[] getLoadedExtensions()
AbstractQuercusModule
getLoadedExtensions
in interface QuercusModule
getLoadedExtensions
in class AbstractQuercusModule
public Value hash(Env env, java.lang.String algorithm, StringValue string, boolean isBinary)
public static Value hash_algos(Env env)
public HashModule.HashContext hash_copy(HashModule.HashContext context)
public Value hash_file(Env env, java.lang.String algorithm, Path path, boolean isBinary)
public Value hash_final(Env env, HashModule.HashContext context, boolean isBinary)
public Value hash_hmac(Env env, java.lang.String algorithm, StringValue data, StringValue key, boolean isBinary)
public Value hash_hmac_file(Env env, java.lang.String algorithm, Path path, StringValue key, boolean isBinary)
public HashModule.HashContext hash_init(Env env, java.lang.String algorithm, int options, StringValue keyString)
public Value hash_update(Env env, HashModule.HashContext context, StringValue value)
public Value hash_update_file(Env env, HashModule.HashContext context, Path path)
public int hash_update_stream(Env env, HashModule.HashContext context, java.io.InputStream is, int length)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |