com.caucho.quercus.lib
Class MhashModule.MhashAlgorithm

java.lang.Object
  extended by com.caucho.quercus.lib.MhashModule.MhashAlgorithm
Enclosing class:
MhashModule

public static class MhashModule.MhashAlgorithm
extends java.lang.Object


Constructor Summary
MhashModule.MhashAlgorithm()
           
 
Method Summary
 java.security.MessageDigest createMessageDigest()
          Create a MessageDigest using the javaName (and javaProvider, if not null).
 java.lang.String getJavaName()
           
 java.lang.String getJavaProvider()
           
 java.lang.String getName()
           
 void init()
           
 void setJavaName(java.lang.String javaName)
          The algorithm name to use when creating the java MessageDigest.
 void setJavaProvider(java.lang.String javaProvider)
          The provider name to use when creating the java MessageDigest, null for the default.
 void setName(java.lang.String name)
          The php name, for example `CRC32'.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MhashModule.MhashAlgorithm

public MhashModule.MhashAlgorithm()
Method Detail

setName

public void setName(java.lang.String name)
The php name, for example `CRC32'.


getName

public java.lang.String getName()

setJavaName

public void setJavaName(java.lang.String javaName)
The algorithm name to use when creating the java MessageDigest.

See Also:
MessageDigest.getInstance(String)

getJavaName

public java.lang.String getJavaName()

setJavaProvider

public void setJavaProvider(java.lang.String javaProvider)
The provider name to use when creating the java MessageDigest, null for the default.

See Also:
MessageDigest.getInstance(String, String)

getJavaProvider

public java.lang.String getJavaProvider()

init

public void init()
          throws ConfigException
Throws:
ConfigException

createMessageDigest

public java.security.MessageDigest createMessageDigest()
Create a MessageDigest using the javaName (and javaProvider, if not null).


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object