|
IAIK CMS/SMIME Toolkit API Documentation
Version 6.1 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectiaik.cms.SignatureValue
public class SignatureValue
The SignatureValue of a CMS SignerInfo.
The signature value field of a CMS SignerInfo is specified as ASN.1 OCTET STRING (see RFC 5652):
SignatureValue ::= OCTET STRINGProvides an alternative way to get the signature value from a
SignerInfo object got from a SignedDataInOutStream
object during parsing:
SignedDataInOutStream signedData = ...; SignerInfo signerInfo = signedData.getSignerInfos()[0]; SignatureValue signatureValue = signerInfo.getSigValue(); byte[] signature = signatureValue.getValue();Usually it is more convenient to get the signature value immediately by calling method
getSignatureValue:
... byte[] signature = signatureValue.getSignatureValue();The only purpose of class
SignatureValue is to get the parsed
encoded representation of the signature value OCTET STRING:
... SignatureValue signatureValue = signerInfo.getSigValue(); byte[] encodedSignatureValue = signatureValue.getEncoded();
| Constructor Summary | |
|---|---|
SignatureValue(byte[] sigValue)
Creates a SignatureValue from the given byte value. |
|
| Method Summary | |
|---|---|
byte[] |
getEncoded()
Returns the DER encoded SignatureValue. |
byte[] |
getValue()
Gets the signature value. |
iaik.asn1.ASN1Object |
toASN1Object()
Returns this SignatureValue as ASN1Object. |
java.lang.String |
toString()
Returns a String representation of the signature value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SignatureValue(byte[] sigValue)
sigValue - the signature value as byte array| Method Detail |
|---|
public byte[] getValue()
public iaik.asn1.ASN1Object toASN1Object()
public byte[] getEncoded()
public java.lang.String toString()
toString in class java.lang.Object
|
IAIK CMS/SMIME Toolkit API Documentation
Version 6.1 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
|
v6.1 (c) 2002 IAIK, (c) 2003 - 2025 SIC |
|