|
Project JXTA | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jxta.impl.util.JxtaHash
A message digest wrapper to provide hashing using java.security.MesssageDigest
Field Summary | |
static String |
DSA
|
static String |
MD2
|
static String |
MD5
|
static String |
RSA
|
static String |
SHA
|
static String |
SHA1
|
static String |
SHA1withDSA
|
Constructor Summary | |
JxtaHash()
Default JxtaHash constructor, with the default algorithm SHA1 |
|
JxtaHash(String expression)
Default JxtaHash constructor, with the default algorithm SHA1 |
|
JxtaHash(String algorithm,
byte[] expression)
Constructor for the JxtaHash object |
|
JxtaHash(String algorithm,
String expression)
Constructor for the JxtaHash object |
Method Summary | |
BigInteger |
getDigestInteger()
Gets the digest as digestInteger |
BigInteger |
getDigestInteger(byte[] expression)
Gets the digest as digestInteger |
BigInteger |
getDigestInteger(String expression)
Gets the digest as digestInteger |
int |
mod(long m)
Returns a int whose value is (getDigestInteger mod m). |
void |
update(String expression)
Constructor for the JxtaHash object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String SHA
public static final String SHA1
public static final String MD2
public static final String MD5
public static final String DSA
public static final String RSA
public static final String SHA1withDSA
Constructor Detail |
public JxtaHash()
public JxtaHash(String expression)
expression
- message to hashpublic JxtaHash(String algorithm, String expression)
algorithm
- algorithm - the name of the algorithm requestedexpression
- expression to digestpublic JxtaHash(String algorithm, byte[] expression)
algorithm
- algorithm - the name of the algorithm requestedexpression
- expression to digestMethod Detail |
public void update(String expression)
expression
- expression to digestpublic BigInteger getDigestInteger()
public BigInteger getDigestInteger(byte[] expression)
expression
- expression to digest
public BigInteger getDigestInteger(String expression)
expression
- expression to digest
public int mod(long m)
m
- the modulus.
|
JXTA J2SE | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |