Top Description Fields Constructors Methods
org.bouncycastle.jcajce.provider.asymmetric.dsa

public Class DSAUtil

extends Object
Class Inheritance
Imports
java.math.BigInteger, java.security.InvalidKeyException, .PrivateKey, .PublicKey, java.security.interfaces.DSAParams, .DSAPrivateKey, .DSAPublicKey, org.bouncycastle.asn1.ASN1ObjectIdentifier, org.bouncycastle.asn1.x509.SubjectPublicKeyInfo, org.bouncycastle.asn1.x9.X9ObjectIdentifiers, org.bouncycastle.crypto.params.AsymmetricKeyParameter, .DSAParameters, .DSAPrivateKeyParameters, org.bouncycastle.internal.asn1.oiw.OIWObjectIdentifiers, org.bouncycastle.util.Arrays, .Fingerprint

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

Field Summary

Modifier and TypeField and Description
public static final ASN1ObjectIdentifier[]

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
pack-priv static String
public static AsymmetricKeyParameter
public static AsymmetricKeyParameter
public static boolean

Returns:

true if it's for a DSA key, false otherwise.
isDsaOid
(ASN1ObjectIdentifier
algorithm OID from a key.
algOid
)

Return true if the passed in OID could be associated with a DSA key.

pack-priv static DSAParameters
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

dsaOidsback to summary
public static final ASN1ObjectIdentifier[] dsaOids

Constructor Detail

DSAUtilback to summary
public DSAUtil()

Method Detail

generateKeyFingerprintback to summary
pack-priv static String generateKeyFingerprint(BigInteger y, DSAParams params)
generatePrivateKeyParameterback to summary
public static AsymmetricKeyParameter generatePrivateKeyParameter(PrivateKey key) throws InvalidKeyException
generatePublicKeyParameterback to summary
public static AsymmetricKeyParameter generatePublicKeyParameter(PublicKey key) throws InvalidKeyException
isDsaOidback to summary
public static boolean isDsaOid(ASN1ObjectIdentifier algOid)

Return true if the passed in OID could be associated with a DSA key.

Parameters
algOid:ASN1ObjectIdentifier

algorithm OID from a key.

Returns:boolean

true if it's for a DSA key, false otherwise.

toDSAParametersback to summary
pack-priv static DSAParameters toDSAParameters(DSAParams spec)