Package org.gudy.bouncycastle.x509
Class X509Util
java.lang.Object
org.gudy.bouncycastle.x509.X509Util
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static byte[]
calculateSignature
(DERObjectIdentifier sigOid, String sigName, String provider, PrivateKey key, SecureRandom random, ASN1Encodable object) (package private) static byte[]
calculateSignature
(DERObjectIdentifier sigOid, String sigName, PrivateKey key, SecureRandom random, ASN1Encodable object) (package private) static X509Principal
convertPrincipal
(X500Principal principal) (package private) static Iterator
(package private) static DERObjectIdentifier
getAlgorithmOID
(String algorithmName) (package private) static X509Util.Implementation
getImplementation
(String baseName, String algorithm) return an implementation for a given algorithm/provider.(package private) 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.(package private) static Provider
getProvider
(String provider) (package private) static AlgorithmIdentifier
getSigAlgID
(DERObjectIdentifier sigOid, String algorithmName) (package private) static Signature
getSignatureInstance
(String algorithm) (package private) static Signature
getSignatureInstance
(String algorithm, String provider)
-
Field Details
-
algorithms
-
params
-
noParams
-
-
Constructor Details
-
X509Util
X509Util()
-
-
Method Details
-
getAlgorithmOID
-
getSigAlgID
-
getAlgNames
-
getSignatureInstance
- Throws:
NoSuchAlgorithmException
-
getSignatureInstance
static Signature getSignatureInstance(String algorithm, String provider) throws NoSuchProviderException, NoSuchAlgorithmException -
calculateSignature
static byte[] calculateSignature(DERObjectIdentifier sigOid, String sigName, PrivateKey key, SecureRandom random, ASN1Encodable object) throws IOException, NoSuchAlgorithmException, InvalidKeyException, SignatureException -
calculateSignature
static byte[] calculateSignature(DERObjectIdentifier sigOid, String sigName, String provider, PrivateKey key, SecureRandom random, ASN1Encodable object) throws IOException, NoSuchProviderException, NoSuchAlgorithmException, InvalidKeyException, SignatureException -
convertPrincipal
-
getImplementation
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.- Throws:
NoSuchAlgorithmException
-
getImplementation
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.- Throws:
NoSuchAlgorithmException
-
getProvider
- Throws:
NoSuchProviderException
-