|
|||||||||
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. |
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 arrayMethod Detail |
---|
public byte[] getValue()
public ASN1Object toASN1Object()
public byte[] getEncoded()
public java.lang.String toString()
toString
in class java.lang.Object
|
This Javadoc may contain text parts from text parts from IETF Internet Standard specifications (see copyright note). | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |