Top Inners Fields Constructors Methods
org.bouncycastle.x509

pack-priv Class X509Util

extends Object
Class Inheritance
Imports
java.io.IOException, java.security.InvalidKeyException, .NoSuchAlgorithmException, .NoSuchProviderException, .PrivateKey, .Provider, .SecureRandom, .Security, .Signature, .SignatureException, java.util.ArrayList, .Enumeration, .HashSet, .Hashtable, .Iterator, .List, .Set, javax.security.auth.x500.X500Principal, org.bouncycastle.asn1.ASN1Encodable, .ASN1Encoding, .ASN1Integer, .ASN1ObjectIdentifier, .DERNull, org.bouncycastle.asn1.cryptopro.CryptoProObjectIdentifiers, org.bouncycastle.asn1.nist.NISTObjectIdentifiers, org.bouncycastle.asn1.oiw.OIWObjectIdentifiers, org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers, .RSASSAPSSparams, org.bouncycastle.asn1.teletrust.TeleTrusTObjectIdentifiers, org.bouncycastle.asn1.x509.AlgorithmIdentifier, org.bouncycastle.asn1.x9.X9ObjectIdentifiers, org.bouncycastle.jce.X509Principal, org.bouncycastle.util.Strings

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Field Summary

Modifier and TypeField and Description
private static Hashtable<K, V>
private static Set<E>
private static Hashtable<K, V>

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv static byte[]
pack-priv static byte[]
pack-priv static X509Principal
convertPrincipal(X500Principal principal)

Deprecated as a consequence of X509Principal being deprecated.
private static RSASSAPSSparams
creatPSSParams(AlgorithmIdentifier hashAlgId, int saltSize)

pack-priv static Iterator<E>
pack-priv static ASN1ObjectIdentifier
getAlgorithmOID(String algorithmName)

pack-priv static X509Util.Implementation
getImplementation(String baseName, String algorithm, Provider prov)

see if we can find an algorithm (or its alias and what it represents) in the property table for the given provider.

pack-priv static X509Util.Implementation
getImplementation(String baseName, String algorithm)

return an implementation for a given algorithm/provider.

pack-priv static Provider
getProvider(String provider)

pack-priv static AlgorithmIdentifier
getSigAlgID(ASN1ObjectIdentifier sigOid, String algorithmName)

pack-priv static Signature
pack-priv static Signature
getSignatureInstance(String algorithm, String provider)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

algorithmsback to summary
private static Hashtable<K, V> algorithms
noParamsback to summary
private static Set<E> noParams
paramsback to summary
private static Hashtable<K, V> params

Constructor Detail

X509Utilback to summary
pack-priv X509Util()

Method Detail

calculateSignatureback to summary
pack-priv static byte[] calculateSignature(ASN1ObjectIdentifier sigOid, String sigName, PrivateKey key, SecureRandom random, ASN1Encodable object) throws IOException, NoSuchAlgorithmException, InvalidKeyException, SignatureException
calculateSignatureback to summary
pack-priv static byte[] calculateSignature(ASN1ObjectIdentifier sigOid, String sigName, String provider, PrivateKey key, SecureRandom random, ASN1Encodable object) throws IOException, NoSuchProviderException, NoSuchAlgorithmException, InvalidKeyException, SignatureException
convertPrincipalback to summary
pack-priv static X509Principal convertPrincipal(X500Principal principal)

Deprecated

as a consequence of X509Principal being deprecated. See corresponding docs for further information.

creatPSSParamsback to summary
private static RSASSAPSSparams creatPSSParams(AlgorithmIdentifier hashAlgId, int saltSize)
getAlgNamesback to summary
pack-priv static Iterator<E> getAlgNames()
getAlgorithmOIDback to summary
pack-priv static ASN1ObjectIdentifier getAlgorithmOID(String algorithmName)
getImplementationback to summary
pack-priv static X509Util.Implementation getImplementation(String baseName, String algorithm, Provider prov) throws NoSuchAlgorithmException

see if we can find an algorithm (or its alias and what it represents) in the property table for the given provider.

getImplementationback to summary
pack-priv static X509Util.Implementation getImplementation(String baseName, String algorithm) throws NoSuchAlgorithmException

return an implementation for a given algorithm/provider. If the provider is null, we grab the first avalaible who has the required algorithm.

getProviderback to summary
pack-priv static Provider getProvider(String provider) throws NoSuchProviderException
getSigAlgIDback to summary
pack-priv static AlgorithmIdentifier getSigAlgID(ASN1ObjectIdentifier sigOid, String algorithmName)
getSignatureInstanceback to summary
pack-priv static Signature getSignatureInstance(String algorithm) throws NoSuchAlgorithmException
getSignatureInstanceback to summary
pack-priv static Signature getSignatureInstance(String algorithm, String provider) throws NoSuchProviderException, NoSuchAlgorithmException
org.bouncycastle.x509 back to summary

pack-priv Class X509Util.Implementation

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv Object
pack-priv Provider

Constructor Summary

AccessConstructor and Description
pack-priv
Implementation(Object engine, Provider provider)

Method Summary

Modifier and TypeMethod and Description
pack-priv Object
pack-priv Provider
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

engineback to summary
pack-priv Object engine
providerback to summary
pack-priv Provider provider

Constructor Detail

Implementationback to summary
pack-priv Implementation(Object engine, Provider provider)

Method Detail

getEngineback to summary
pack-priv Object getEngine()
getProviderback to summary
pack-priv Provider getProvider()