Class DSAUtil
java.lang.Object
org.bouncycastle.jcajce.provider.asymmetric.dsa.DSAUtil
utility class for converting jce/jca DSA objects
objects into their org.bouncycastle.crypto counterparts.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic AsymmetricKeyParameter
static AsymmetricKeyParameter
static boolean
isDsaOid
(ASN1ObjectIdentifier algOid) Return true if the passed in OID could be associated with a DSA key.
-
Field Details
-
dsaOids
-
-
Constructor Details
-
DSAUtil
public DSAUtil()
-
-
Method Details
-
isDsaOid
Return true if the passed in OID could be associated with a DSA key.- Parameters:
algOid
- algorithm OID from a key.- Returns:
- true if it's for a DSA key, false otherwise.
-
generatePublicKeyParameter
public static AsymmetricKeyParameter generatePublicKeyParameter(PublicKey key) throws InvalidKeyException - Throws:
InvalidKeyException
-
generatePrivateKeyParameter
public static AsymmetricKeyParameter generatePrivateKeyParameter(PrivateKey key) throws InvalidKeyException - Throws:
InvalidKeyException
-