Class DigitalSignatureInfo.Reference
-
- All Implemented Interfaces:
public class DigitalSignatureInfo.Reference
Signature reference dictionary. This dictionary contains the object digest result, including information about how it was computed.
-
-
Field Summary
Fields Modifier and Type Field Description public final DigitalSignatureInfo.ReferenceTransformMethod
transformMethod
public final String
digestMethod
public final String
digestValue
public final Range
digestLocation
public final String
dataName
-
Method Summary
Modifier and Type Method Description DigitalSignatureInfo.ReferenceTransformMethod
getTransformMethod()
Returns the transformation method that was used to generate the digest. String
getDigestMethod()
The algorithm used for computing the digest. String
getDigestValue()
The result of the digest operation (if required by the transformation) or null
.Range
getDigestLocation()
The location of the digest value in the PDF file in bytes, or null
.String
getDataName()
Name of the object used while computing the object digest. String
toString()
-
-
Method Detail
-
getTransformMethod
@NonNull() DigitalSignatureInfo.ReferenceTransformMethod getTransformMethod()
Returns the transformation method that was used to generate the digest.
- Returns:
The ReferenceTransformMethod that defines how the stored digest was computed.
-
getDigestMethod
@Nullable() String getDigestMethod()
The algorithm used for computing the digest. Valid values are
"MD5"
and"SHA1"
. May benull
.- Returns:
The digestion algorithm used. May be one of
"MD5"
,"SHA1"
, ornull
.
-
getDigestValue
@Nullable() String getDigestValue()
The result of the digest operation (if required by the transformation) or
null
.- Returns:
The resulting digest value, or
null
if not needed by the used transformation method.
-
getDigestLocation
@Nullable() Range getDigestLocation()
The location of the digest value in the PDF file in bytes, or
null
. This value is present when it is required by the transformation method.- Returns:
Position of the digest value inside the PDF (denote as position and length in bytes) or
null
.
-
getDataName
@Nullable() String getDataName()
Name of the object used while computing the object digest. This is only used for FIELDMDP or IDENTITY.
- Returns:
Name of the object used for computing the digest or
null
.
-
-
-
-