public class DSAUtil
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
static ASN1ObjectIdentifier[] |
dsaOids |
Constructor | Description |
---|---|
DSAUtil() |
Modifier and Type | Method | 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