public class DSAUtil extends Object
Modifier and Type | Field and Description |
---|---|
static ASN1ObjectIdentifier[] |
dsaOids |
Constructor and Description |
---|
DSAUtil() |
Modifier and Type | Method and 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.
|
public static final ASN1ObjectIdentifier[] dsaOids
public static boolean isDsaOid(ASN1ObjectIdentifier algOid)
algOid
- algorithm OID from a key.public static AsymmetricKeyParameter generatePublicKeyParameter(PublicKey key) throws InvalidKeyException
InvalidKeyException
public static AsymmetricKeyParameter generatePrivateKeyParameter(PrivateKey key) throws InvalidKeyException
InvalidKeyException
Copyright © 2021 BouncyCastle.org. All rights reserved.