Top Fields Constructors Methods
org.bouncycastle.its.bc

public Class BcITSContentSigner

extends Object
implements ITSContentSigner
Class Inheritance
All Implemented Interfaces
org.bouncycastle.its.operator.ITSContentSigner
Imports
java.io.IOException, .OutputStream, org.bouncycastle.asn1.ASN1ObjectIdentifier, org.bouncycastle.asn1.nist.NISTObjectIdentifiers, org.bouncycastle.asn1.sec.SECObjectIdentifiers, org.bouncycastle.asn1.teletrust.TeleTrusTObjectIdentifiers, org.bouncycastle.asn1.x509.AlgorithmIdentifier, org.bouncycastle.crypto.Digest, org.bouncycastle.crypto.io.DigestOutputStream, org.bouncycastle.crypto.params.ECNamedDomainParameters, .ECPrivateKeyParameters, org.bouncycastle.crypto.signers.DSADigestSigner, .ECDSASigner, org.bouncycastle.its.ITSCertificate, org.bouncycastle.its.operator.ITSContentSigner, org.bouncycastle.operator.OperatorCreationException, org.bouncycastle.operator.bc.BcDefaultDigestProvider, org.bouncycastle.util.Arrays

Field Summary

Modifier and TypeField and Description
private final ASN1ObjectIdentifier
private final Digest
private final AlgorithmIdentifier
private final byte[]
private final byte[]
private final ECPrivateKeyParameters
private final ITSCertificate

Constructor Summary

AccessConstructor and Description
public
BcITSContentSigner(ECPrivateKeyParameters privKey)

Constructor for self-signing.

public

Method Summary

Modifier and TypeMethod and Description
public ITSCertificate
public byte[]
public ASN1ObjectIdentifier
public AlgorithmIdentifier
public OutputStream
getOutputStream()

Implements org.bouncycastle.its.operator.ITSContentSigner.getOutputStream.

Returns a stream that will accept data for the purpose of calculating a signature.

public byte[]
getSignature()

Implements org.bouncycastle.its.operator.ITSContentSigner.getSignature.

Returns a signature based on the current data written to the stream, since the start or the last call to getSignature().

public boolean
isForSelfSigning()

Implements org.bouncycastle.its.operator.ITSContentSigner.isForSelfSigning.

Return true if this ContentSigner is for self signing.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

curveIDback to summary
private final ASN1ObjectIdentifier curveID
digestback to summary
private final Digest digest
digestAlgoback to summary
private final AlgorithmIdentifier digestAlgo
parentDataback to summary
private final byte[] parentData
parentDigestback to summary
private final byte[] parentDigest
privKeyback to summary
private final ECPrivateKeyParameters privKey
signerCertback to summary
private final ITSCertificate signerCert

Constructor Detail

BcITSContentSignerback to summary
public BcITSContentSigner(ECPrivateKeyParameters privKey)

Constructor for self-signing.

BcITSContentSignerback to summary
public BcITSContentSigner(ECPrivateKeyParameters privKey, ITSCertificate signerCert)

Method Detail

getAssociatedCertificateback to summary
public ITSCertificate getAssociatedCertificate()

Implements org.bouncycastle.its.operator.ITSContentSigner.getAssociatedCertificate.

getAssociatedCertificateDigestback to summary
public byte[] getAssociatedCertificateDigest()

Implements org.bouncycastle.its.operator.ITSContentSigner.getAssociatedCertificateDigest.

getCurveIDback to summary
public ASN1ObjectIdentifier getCurveID()

Implements org.bouncycastle.its.operator.ITSContentSigner.getCurveID.

getDigestAlgorithmback to summary
public AlgorithmIdentifier getDigestAlgorithm()

Implements org.bouncycastle.its.operator.ITSContentSigner.getDigestAlgorithm.

getOutputStreamback to summary
public OutputStream getOutputStream()

Implements org.bouncycastle.its.operator.ITSContentSigner.getOutputStream.

Doc from org.bouncycastle.its.operator.ITSContentSigner.getOutputStream.

Returns a stream that will accept data for the purpose of calculating a signature. Use org.bouncycastle.util.io.TeeOutputStream if you want to accumulate the data on the fly as well.

Returns:OutputStream

an OutputStream

getSignatureback to summary
public byte[] getSignature()

Implements org.bouncycastle.its.operator.ITSContentSigner.getSignature.

Doc from org.bouncycastle.its.operator.ITSContentSigner.getSignature.

Returns a signature based on the current data written to the stream, since the start or the last call to getSignature().

Returns:byte[]

bytes representing the signature.

isForSelfSigningback to summary
public boolean isForSelfSigning()

Implements org.bouncycastle.its.operator.ITSContentSigner.isForSelfSigning.

Doc from org.bouncycastle.its.operator.ITSContentSigner.isForSelfSigning.

Return true if this ContentSigner is for self signing. False otherwise.

Returns:boolean

true if for self-signing.