|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.mdm.index.util.Sigger
Signature calculator calculates a signature for a given SystemObject. Signature can be calculated using either "MD5" or "SHA" algorithm. This implementation relys on Java 1.4 security features. And requires at least the default provider, or additional registered provider that supports "MD5" or "SHA" MAC algorithm
Constructor Summary | |
Sigger()
Creates new Sigger |
Method Summary | |
protected byte[] |
calculateSignature(java.lang.String algo,
ObjectNode omega)
calculates the checksum for match fields. |
byte[] |
calculateSignatureMD5(ObjectNode omega)
calculates the signature using MD5 MAC algorithm |
byte[] |
calculateSignatureSHA(ObjectNode omega)
calculates the signature using SHA MAC algorithm |
protected void |
traverse(ObjectNode obj,
java.security.MessageDigest md)
Traverse the ObjectNode |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Sigger()
Method Detail |
protected byte[] calculateSignature(java.lang.String algo, ObjectNode omega) throws SystemObjectException
algo
- MD5 or SHAomega
- SBR object
SystemObjectException
- if accessing the ObjectNode failedpublic byte[] calculateSignatureMD5(ObjectNode omega) throws SystemObjectException
omega
- input object
SystemObjectException
- if accessing the ObjectNode failedpublic byte[] calculateSignatureSHA(ObjectNode omega) throws SystemObjectException
omega
- input object
SystemObjectException
- if accessing the ObjectNode failedprotected void traverse(ObjectNode obj, java.security.MessageDigest md) throws SystemObjectException
obj
- the ObjectNode to traversemd
- the MessageDigest to use
SystemObjectException
- if traversing the ObjectNode failed
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Sun Microsystems, Inc.