|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.rsa.swsj.Reference
com.rsa.swsj.signature.SigReference
This class creates and stores the Reference element in an XML signature. It
includes the digest method and resulting digest value calculated over the
identified data object. It can also include transformations that produce
the input to the digest operation. Reference validation involves checking
the digest value against the identified data object. If the digest
algorithm is not set, the default SHA1 hashing algorithm is
used.
setURI() method from the
Reference base class to set the URI of the
Reference object.
| Field Summary | |
static java.lang.String |
ALG_DIGEST_SHA1
Specifies the SHA-1 digest algorithm. |
| Fields inherited from class com.rsa.swsj.Reference |
ALG_TRANSFORM_BASE64, ALG_TRANSFORM_C14N, ALG_TRANSFORM_C14N_WITH_COMMENTS, ALG_TRANSFORM_ENVELOPED_SIGNATURE, ALG_TRANSFORM_EXCLC14N, ALG_TRANSFORM_EXCLC14N_WITH_COMMENTS, ALG_TRANSFORM_XPATH |
| Constructor Summary | |
SigReference(SWSJContext context)
Creates a |
|
SigReference(SWSJContext context,
java.lang.String uri,
java.lang.String digestMethod)
Creates a |
|
| Method Summary | |
java.lang.String |
getDigestMethod()
Gets the digest algorithm of this reference. |
byte[] |
getDigestValue()
Gets the digest value. |
void |
setDigestMethod(java.lang.String digestMethod)
Sets the digest algorithm of this reference. |
| Methods inherited from class com.rsa.swsj.Reference |
addTransform, getContext, getId, getTransformParams, getTransforms, getURI, setId, setURI |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String ALG_DIGEST_SHA1
| Constructor Detail |
public SigReference(SWSJContext context)
throws InvalidParameterException
SigReference object and initializes it with the
context only. If the digest algorithm is not set later, the default
SHA1 hashing algorithm is used.
context - An object that collects a number of common parameters and
state variables; for example, JCE provider.
InvalidParameterException - If context is invalid.
public SigReference(SWSJContext context,
java.lang.String uri,
java.lang.String digestMethod)
throws InvalidParameterException
SigReference object and initializes it with the
given values.
context - An object that collects a number of common parameters and
state variables; for example, JCE provider.uri - The URI that identifies the data object.digestMethod - The digest algorithm.
InvalidParameterException - If any of the parameters are
invalid.| Method Detail |
public void setDigestMethod(java.lang.String digestMethod)
throws InvalidParameterException
digestMethod - The digest algorithm to apply to the signed object.
InvalidParameterException - If the digest algorithm is no
supported.public java.lang.String getDigestMethod()
String.public byte[] getDigestValue()
byte array containing the digest value.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||