Class DSAUtil


  • public class DSAUtil
    extends java.lang.Object
    utility class for converting jce/jca DSA objects objects into their org.bouncycastle.crypto counterparts.
    • 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
        Throws:
        java.security.InvalidKeyException
      • generatePrivateKeyParameter

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