Bouncy Castle Cryptography Library 1.77.0

org.bouncycastle.jcajce.provider.asymmetric.dsa
Class DSAUtil

java.lang.Object
  |
  +--org.bouncycastle.jcajce.provider.asymmetric.dsa.DSAUtil

public class DSAUtil
extends java.lang.Object

utility class for converting jce/jca DSA objects objects into their org.bouncycastle.crypto counterparts.


Field Summary
static ASN1ObjectIdentifier[] dsaOids
           
 
Constructor Summary
DSAUtil()
           
 
Method Summary
static AsymmetricKeyParameter generatePrivateKeyParameter(java.security.PrivateKey key)
           
static AsymmetricKeyParameter generatePublicKeyParameter(java.security.PublicKey key)
           
static boolean isDsaOid(ASN1ObjectIdentifier algOid)
          Return true if the passed in OID could be associated with a DSA key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dsaOids

public static final ASN1ObjectIdentifier[] dsaOids
Constructor Detail

DSAUtil

public DSAUtil()
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(java.security.PublicKey key)
                                                         throws java.security.InvalidKeyException

generatePrivateKeyParameter

public static AsymmetricKeyParameter generatePrivateKeyParameter(java.security.PrivateKey key)
                                                          throws java.security.InvalidKeyException

Bouncy Castle Cryptography Library 1.77.0