Top Description Fields Constructors Methods
org.bouncycastle.crypto.asymmetric

public abstract Class AsymmetricDSAKey

extends Object
implements AsymmetricKey
Class Inheritance
All Implemented Interfaces
org.bouncycastle.crypto.AsymmetricKey, org.bouncycastle.crypto.Key
Known Direct Subclasses
org.bouncycastle.crypto.asymmetric.AsymmetricDSAPrivateKey, org.bouncycastle.crypto.asymmetric.AsymmetricDSAPublicKey
Imports
java.util.HashSet, .Set, org.bouncycastle.asn1.ASN1ObjectIdentifier, org.bouncycastle.asn1.oiw.OIWObjectIdentifiers, org.bouncycastle.asn1.x509.AlgorithmIdentifier, .DSAParameter, org.bouncycastle.asn1.x9.X9ObjectIdentifiers, org.bouncycastle.crypto.Algorithm, .AsymmetricKey, .CryptoServicesRegistrar, org.bouncycastle.crypto.fips.FipsUnapprovedOperationError

Base class for Digital Signature Algorithm (DSA) keys.

Field Summary

Modifier and TypeField and Description
protected Algorithm
protected final boolean
protected DSADomainParameters
private static final Set<ASN1ObjectIdentifier>

Constructor Summary

AccessConstructor and Description
pack-priv
AsymmetricDSAKey(Algorithm algorithm, DSADomainParameters domainParameters)

pack-priv
AsymmetricDSAKey(Algorithm algorithm, AlgorithmIdentifier algorithmIdentifier)

Method Summary

Modifier and TypeMethod and Description
protected final void
private static DSADomainParameters
public Algorithm

Returns:

the key's algorithm.
getAlgorithm
()

Implements org.bouncycastle.crypto.Key.getAlgorithm.

Return the algorithm this DSA key is for.
public DSADomainParameters

Returns:

the DSA domain parameters for this key.
getDomainParameters
()

Return the DSA domain parameters associated with this key.

protected void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

algorithmback to summary
protected Algorithm algorithm
approvedModeOnlyback to summary
protected final boolean approvedModeOnly
domainParametersback to summary
protected DSADomainParameters domainParameters
dsaOidsback to summary
private static final Set<ASN1ObjectIdentifier> dsaOids

Constructor Detail

AsymmetricDSAKeyback to summary
pack-priv AsymmetricDSAKey(Algorithm algorithm, DSADomainParameters domainParameters)
AsymmetricDSAKeyback to summary
pack-priv AsymmetricDSAKey(Algorithm algorithm, AlgorithmIdentifier algorithmIdentifier)

Method Detail

checkApprovedOnlyModeStatusback to summary
protected final void checkApprovedOnlyModeStatus()
decodeDomainParametersback to summary
private static DSADomainParameters decodeDomainParameters(AlgorithmIdentifier algorithmIdentifier)
getAlgorithmback to summary
public Algorithm getAlgorithm()

Implements org.bouncycastle.crypto.Key.getAlgorithm.

Return the algorithm this DSA key is for.

Returns:Algorithm

the key's algorithm.

getDomainParametersback to summary
public DSADomainParameters getDomainParameters()

Return the DSA domain parameters associated with this key.

Returns:DSADomainParameters

the DSA domain parameters for this key.

zeroizeback to summary
protected void zeroize()