|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.yosokumo.core.DigestRequest
class DigestRequest
Provides a method to digest (using HMAC) and encode (using Base64) an input message.
Field Summary | |
---|---|
(package private) static int |
ENCODED_LEN
Length of the encoded digest. |
Constructor Summary | |
---|---|
DigestRequest()
|
Method Summary | |
---|---|
static java.lang.String |
makeDigest(java.lang.String message,
byte[] key)
Make an encoded digest of a message. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final int ENCODED_LEN
Constructor Detail |
---|
DigestRequest()
Method Detail |
---|
public static java.lang.String makeDigest(java.lang.String message, byte[] key) throws ServiceException
message
- the input message to encode.key
- the key to use to digest the input message. It must
be exactly 64 bytes in length.
ServiceException
- if the input key length is not correct.
ServiceException
- if there is any problem encoding the message.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |