Class DSAUtil
- java.lang.Object
-
- org.bouncycastle.jcajce.provider.asymmetric.dsa.DSAUtil
-
public class DSAUtil extends Object
utility class for converting jce/jca DSA objects objects into their org.bouncycastle.crypto counterparts.
-
-
Field Summary
Fields Modifier and Type Field Description static ASN1ObjectIdentifier[]
dsaOids
-
Constructor Summary
Constructors Constructor Description DSAUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AsymmetricKeyParameter
generatePrivateKeyParameter(PrivateKey key)
static AsymmetricKeyParameter
generatePublicKeyParameter(PublicKey key)
static boolean
isDsaOid(ASN1ObjectIdentifier algOid)
Return true if the passed in OID could be associated with a DSA key.
-
-
-
Field Detail
-
dsaOids
public static final ASN1ObjectIdentifier[] dsaOids
-
-
Method Detail
-
isDsaOid
public static boolean isDsaOid(ASN1ObjectIdentifier algOid)
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
-
-