Top Fields Constructors Methods
org.bouncycastle.its

public Class ETSISignedData

extends Object
Class Inheritance
Imports
java.io.ByteArrayInputStream, .IOException, .InputStream, .OutputStream, org.bouncycastle.asn1.ASN1Encodable, org.bouncycastle.its.operator.ECDSAEncoder, .ITSContentVerifierProvider, org.bouncycastle.oer.Element, .OEREncoder, .OERInputStream, org.bouncycastle.oer.its.etsi103097.EtsiTs103097DataSigned, org.bouncycastle.oer.its.ieee1609dot2.Ieee1609Dot2Content, .Opaque, .SignedData, org.bouncycastle.oer.its.ieee1609dot2.basetypes.Signature, org.bouncycastle.oer.its.template.etsi103097.EtsiTs103097Module, org.bouncycastle.oer.its.template.ieee1609dot2.IEEE1609dot2, org.bouncycastle.operator.ContentVerifier

Field Summary

Modifier and TypeField and Description
private static final Element
private final SignedData

Constructor Summary

AccessConstructor and Description
public
public
ETSISignedData(byte[] oerEncoded)

public
public
ETSISignedData(EtsiTs103097DataSigned etsiTs103097Data_signed)

public

Method Summary

Modifier and TypeMethod and Description
public byte[]
public SignedData
public boolean

Returns:

true if the signature was valid.
signatureValid
(ITSContentVerifierProvider verifierProvider)

Verify signature is valid with respect to the supplied public key.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

oerDefback to summary
private static final Element oerDef
signedDataback to summary
private final SignedData signedData

Constructor Detail

ETSISignedDataback to summary
public ETSISignedData(Opaque opaque) throws IOException
ETSISignedDataback to summary
public ETSISignedData(byte[] oerEncoded) throws IOException
ETSISignedDataback to summary
public ETSISignedData(InputStream str) throws IOException
ETSISignedDataback to summary
public ETSISignedData(EtsiTs103097DataSigned etsiTs103097Data_signed)
ETSISignedDataback to summary
public ETSISignedData(SignedData signedData)

Method Detail

getEncodedback to summary
public byte[] getEncoded()
getSignedDataback to summary
public SignedData getSignedData()
signatureValidback to summary
public boolean signatureValid(ITSContentVerifierProvider verifierProvider) throws Exception

Verify signature is valid with respect to the supplied public key. Contextual verification, ie "is this SignedData what you are expecting?" type checking needs to be done by the caller.

Returns:boolean

true if the signature was valid.