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