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

pack-priv Class OperatorHelper

extends Object
Class Inheritance
Imports
java.io.ByteArrayInputStream, .IOException, java.security.AlgorithmParameters, .GeneralSecurityException, .KeyFactory, .KeyPairGenerator, .MessageDigest, .NoSuchAlgorithmException, .NoSuchProviderException, .PublicKey, .Signature, java.security.cert.CertificateException, .CertificateFactory, .X509Certificate, java.security.spec.InvalidKeySpecException, .PSSParameterSpec, .X509EncodedKeySpec, java.util.HashMap, .Map, javax.crypto.Cipher, .KeyAgreement, org.bouncycastle.asn1.ASN1Integer, .ASN1ObjectIdentifier, .ASN1Sequence, org.bouncycastle.asn1.cryptopro.CryptoProObjectIdentifiers, org.bouncycastle.asn1.kisa.KISAObjectIdentifiers, org.bouncycastle.asn1.nist.NISTObjectIdentifiers, org.bouncycastle.asn1.ntt.NTTObjectIdentifiers, org.bouncycastle.asn1.oiw.OIWObjectIdentifiers, org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers, .RSASSAPSSparams, org.bouncycastle.asn1.teletrust.TeleTrusTObjectIdentifiers, org.bouncycastle.asn1.x509.AlgorithmIdentifier, .SubjectPublicKeyInfo, org.bouncycastle.cert.X509CertificateHolder, org.bouncycastle.cms.CMSException, org.bouncycastle.jcajce.util.AlgorithmParametersUtils, .JcaJceHelper, .MessageDigestUtils, org.bouncycastle.operator.DefaultSignatureNameFinder, .OperatorCreationException, org.bouncycastle.pkix.SubjectPublicKeyInfoChecker, org.bouncycastle.util.Integers

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private static final Map<K, V>
private JcaJceHelper
pack-priv static final ASN1ObjectIdentifier
pack-priv static final ASN1ObjectIdentifier
id_shake256_len

2.16.840.1.101.3.4.2.18

private static final Map<K, V>
private static DefaultSignatureNameFinder
private static final Map<K, V>
private static final Map<K, V>
private static final Map<K, V>

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public X509Certificate
public PublicKey
pack-priv AlgorithmParameters
pack-priv Cipher
createAsymmetricWrapper(ASN1ObjectIdentifier algorithm, Map<K, V> extraAlgNames)

pack-priv Cipher
pack-priv MessageDigest
pack-priv KeyAgreement
pack-priv KeyPairGenerator
pack-priv Signature
pack-priv Signature
pack-priv Cipher
pack-priv static String
pack-priv String
pack-priv int
private static String
pack-priv String
private boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

asymmetricWrapperAlgNamesback to summary
private static final Map<K, V> asymmetricWrapperAlgNames
helperback to summary
private JcaJceHelper helper
id_shake128_lenback to summary
pack-priv static final ASN1ObjectIdentifier id_shake128_len
id_shake256_lenback to summary
pack-priv static final ASN1ObjectIdentifier id_shake256_len

2.16.840.1.101.3.4.2.18

oidsback to summary
private static final Map<K, V> oids
sigFinderback to summary
private static DefaultSignatureNameFinder sigFinder
symmetricKeyAlgNamesback to summary
private static final Map<K, V> symmetricKeyAlgNames
symmetricWrapperAlgNamesback to summary
private static final Map<K, V> symmetricWrapperAlgNames
symmetricWrapperKeySizesback to summary
private static final Map<K, V> symmetricWrapperKeySizes

Constructor Detail

OperatorHelperback to summary
pack-priv OperatorHelper(JcaJceHelper helper)

Method Detail

convertCertificateback to summary
public X509Certificate convertCertificate(X509CertificateHolder certHolder) throws CertificateException
convertPublicKeyback to summary
public PublicKey convertPublicKey(SubjectPublicKeyInfo publicKeyInfo) throws OperatorCreationException
createAlgorithmParametersback to summary
pack-priv AlgorithmParameters createAlgorithmParameters(AlgorithmIdentifier cipherAlgId) throws OperatorCreationException
createAsymmetricWrapperback to summary
pack-priv Cipher createAsymmetricWrapper(ASN1ObjectIdentifier algorithm, Map<K, V> extraAlgNames) throws OperatorCreationException
createCipherback to summary
pack-priv Cipher createCipher(ASN1ObjectIdentifier algorithm) throws OperatorCreationException
createDigestback to summary
pack-priv MessageDigest createDigest(AlgorithmIdentifier digAlgId) throws GeneralSecurityException
createKeyAgreementback to summary
pack-priv KeyAgreement createKeyAgreement(ASN1ObjectIdentifier algorithm) throws OperatorCreationException
createKeyPairGeneratorback to summary
pack-priv KeyPairGenerator createKeyPairGenerator(ASN1ObjectIdentifier algorithm) throws CMSException
createRawSignatureback to summary
pack-priv Signature createRawSignature(AlgorithmIdentifier algorithm)
createSignatureback to summary
pack-priv Signature createSignature(AlgorithmIdentifier sigAlgId) throws GeneralSecurityException
createSymmetricWrapperback to summary
pack-priv Cipher createSymmetricWrapper(ASN1ObjectIdentifier algorithm) throws OperatorCreationException
getDigestNameback to summary
pack-priv static String getDigestName(ASN1ObjectIdentifier oid)
getKeyAlgorithmNameback to summary
pack-priv String getKeyAlgorithmName(ASN1ObjectIdentifier oid)
getKeySizeInBitsback to summary
pack-priv int getKeySizeInBits(ASN1ObjectIdentifier algOid)
getSignatureNameback to summary
private static String getSignatureName(AlgorithmIdentifier sigAlgId)
getWrappingAlgorithmNameback to summary
pack-priv String getWrappingAlgorithmName(ASN1ObjectIdentifier algOid)
notDefaultPSSParamsback to summary
private boolean notDefaultPSSParams(ASN1Sequence seq) throws GeneralSecurityException
org.bouncycastle.operator.jcajce back to summary

private Class OperatorHelper.OpCertificateException

extends CertificateException
Class Inheritance

Field Summary

Modifier and TypeField and Description
private Throwable

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Throwable
getCause()

Overrides java.lang.Throwable.getCause.

Returns the cause of this throwable or null if the cause is nonexistent or unknown.

Field Detail

causeback to summary
private Throwable cause

Hides java.lang.Throwable.cause.

Constructor Detail

OpCertificateExceptionback to summary
public OpCertificateException(String msg, Throwable cause)

Method Detail

getCauseback to summary
public Throwable getCause()

Overrides java.lang.Throwable.getCause.

Doc from java.lang.Throwable.getCause.

Returns the cause of this throwable or null if the cause is nonexistent or unknown. (The cause is the throwable that caused this throwable to get thrown.)

This implementation returns the cause that was supplied via one of the constructors requiring a Throwable, or that was set after creation with the initCause(Throwable) method. While it is typically unnecessary to override this method, a subclass can override it to return a cause set by some other means. This is appropriate for a "legacy chained throwable" that predates the addition of chained exceptions to Throwable. Note that it is not necessary to override any of the PrintStackTrace methods, all of which invoke the getCause method to determine the cause of a throwable.

Returns:Throwable

the cause of this throwable or null if the cause is nonexistent or unknown.