Top Inners Fields Constructors Methods
org.bouncycastle.its.jcajce

public Class JcaITSContentSigner

extends Object
implements ITSContentSigner
Class Inheritance
All Implemented Interfaces
org.bouncycastle.its.operator.ITSContentSigner
Imports
java.io.IOException, .OutputStream, java.security.PrivateKey, .Provider, .Signature, java.security.interfaces.ECPrivateKey, org.bouncycastle.asn1.ASN1ObjectIdentifier, org.bouncycastle.asn1.nist.NISTObjectIdentifiers, org.bouncycastle.asn1.pkcs.PrivateKeyInfo, org.bouncycastle.asn1.sec.SECObjectIdentifiers, org.bouncycastle.asn1.teletrust.TeleTrusTObjectIdentifiers, org.bouncycastle.asn1.x509.AlgorithmIdentifier, org.bouncycastle.its.ITSCertificate, org.bouncycastle.its.operator.ITSContentSigner, org.bouncycastle.jcajce.util.DefaultJcaJceHelper, .JcaJceHelper, .NamedJcaJceHelper, .ProviderJcaJceHelper, org.bouncycastle.operator.DigestCalculator, .DigestCalculatorProvider, .OperatorCreationException, org.bouncycastle.operator.jcajce.JcaDigestCalculatorProviderBuilder, org.bouncycastle.util.Arrays

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
private final ASN1ObjectIdentifier
private final DigestCalculator
private final AlgorithmIdentifier
private final JcaJceHelper
private final byte[]
private final byte[]
private final ECPrivateKey
private final String
private final ITSCertificate

Constructor Summary

AccessConstructor and Description
private

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 DigestCalculator digest
digestAlgoback to summary
private final AlgorithmIdentifier digestAlgo
helperback to summary
private final JcaJceHelper helper
parentDataback to summary
private final byte[] parentData
parentDigestback to summary
private final byte[] parentDigest
privateKeyback to summary
private final ECPrivateKey privateKey
signerback to summary
private final String signer
signerCertback to summary
private final ITSCertificate signerCert

Constructor Detail

JcaITSContentSignerback to summary
private JcaITSContentSigner(ECPrivateKey privateKey, ITSCertificate signerCert, JcaJceHelper helper)

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.

org.bouncycastle.its.jcajce back to summary

public Class JcaITSContentSigner.Builder

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private JcaJceHelper

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public JcaITSContentSigner
build(PrivateKey privateKey)

public JcaITSContentSigner
build(PrivateKey privateKey, ITSCertificate signerCert)

public JcaITSContentSigner.Builder
public JcaITSContentSigner.Builder
setProvider(String providerName)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

helperback to summary
private JcaJceHelper helper

Constructor Detail

Builderback to summary
public Builder()

Method Detail

buildback to summary
public JcaITSContentSigner build(PrivateKey privateKey)
buildback to summary
public JcaITSContentSigner build(PrivateKey privateKey, ITSCertificate signerCert)
setProviderback to summary
public JcaITSContentSigner.Builder setProvider(Provider provider)
setProviderback to summary
public JcaITSContentSigner.Builder setProvider(String providerName)