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

public final Class AsymmetricDSAPublicKey

extends AsymmetricDSAKey
implements AsymmetricPublicKey
Class Inheritance
All Implemented Interfaces
org.bouncycastle.crypto.AsymmetricPublicKey, org.bouncycastle.crypto.AsymmetricKey, org.bouncycastle.crypto.Key
Imports
java.io.IOException, java.math.BigInteger, org.bouncycastle.asn1.ASN1Integer, org.bouncycastle.asn1.x509.AlgorithmIdentifier, .DSAParameter, .SubjectPublicKeyInfo, org.bouncycastle.asn1.x9.X9ObjectIdentifiers, org.bouncycastle.crypto.Algorithm, .AsymmetricPublicKey

Class for Digital Signature Algorithm (DSA) public keys.

Field Summary

Modifier and TypeField and Description
private BigInteger
y

Inherited from org.bouncycastle.crypto.asymmetric.AsymmetricDSAKey:
algorithmapprovedModeOnlydomainParameters

Constructor Summary

AccessConstructor and Description
public
public
AsymmetricDSAPublicKey(Algorithm algorithm, byte[] enc)

public

Method Summary

Modifier and TypeMethod and Description
public boolean
equals(Object
object to compare to.
o
)

Overrides java.lang.Object.equals.

Implements org.bouncycastle.crypto.Key.equals.

Return true if o is an equivalent key to this.
public byte[]
getEncoded()

Implements org.bouncycastle.crypto.AsymmetricKey.getEncoded.

Return an ASN.1 encoding of the key wrapped in a PrivateKeyInfo or a SubjectPublicKeyInfo structure.
public BigInteger
getY()

public int
hashCode()

Overrides java.lang.Object.hashCode.

Implements org.bouncycastle.crypto.Key.hashCode.

Return the hashCode for the key.
private static BigInteger
Inherited from org.bouncycastle.crypto.asymmetric.AsymmetricDSAKey:
checkApprovedOnlyModeStatusgetAlgorithmgetDomainParameterszeroize

Field Detail

yback to summary
private BigInteger y

Constructor Detail

AsymmetricDSAPublicKeyback to summary
public AsymmetricDSAPublicKey(Algorithm algorithm, DSADomainParameters params, BigInteger y)
AsymmetricDSAPublicKeyback to summary
public AsymmetricDSAPublicKey(Algorithm algorithm, byte[] enc)
AsymmetricDSAPublicKeyback to summary
public AsymmetricDSAPublicKey(Algorithm algorithm, SubjectPublicKeyInfo publicKeyInfo)

Method Detail

equalsback to summary
public boolean equals(Object o)

Overrides java.lang.Object.equals.

Implements org.bouncycastle.crypto.Key.equals.

Doc from org.bouncycastle.crypto.Key.equals.

Return true if o is an equivalent key to this.

Parameters
o:Object

object to compare to.

Returns:boolean

true if o is the same or equivalent key, false otherwise.

Annotations
@Override
getEncodedback to summary
public byte[] getEncoded()

Implements org.bouncycastle.crypto.AsymmetricKey.getEncoded.

Doc from org.bouncycastle.crypto.AsymmetricKey.getEncoded.

Return an ASN.1 encoding of the key wrapped in a PrivateKeyInfo or a SubjectPublicKeyInfo structure.

Returns:byte[]

an encoding of a PrivateKeyInfo or a SubjectPublicKeyInfo structure.

getYback to summary
public BigInteger getY()
hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Implements org.bouncycastle.crypto.Key.hashCode.

Doc from org.bouncycastle.crypto.Key.hashCode.

Return the hashCode for the key.

Returns:int

the key's hashCode.

Annotations
@Override
parsePublicKeyback to summary
private static BigInteger parsePublicKey(SubjectPublicKeyInfo publicKeyInfo)