public class

JDKDSAPrivateKey

extends Object
implements DSAPrivateKey PKCS12BagAttributeCarrier
java.lang.Object
   ↳ org.bouncycastle.jce.provider.JDKDSAPrivateKey

Summary

[Expand]
Inherited Constants
From interface java.security.Key
From interface java.security.PrivateKey
From interface java.security.interfaces.DSAPrivateKey
Protected Constructors
JDKDSAPrivateKey()
Public Methods
boolean equals(Object o)
String getAlgorithm()
DEREncodable getBagAttribute(DERObjectIdentifier oid)
Enumeration getBagAttributeKeys()
byte[] getEncoded()
Return a PKCS8 representation of the key.
String getFormat()
return the encoding format we produce in getEncoded().
DSAParams getParams()
BigInteger getX()
int hashCode()
void setBagAttribute(DERObjectIdentifier oid, DEREncodable attribute)
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.security.Key
From interface java.security.interfaces.DSAKey
From interface java.security.interfaces.DSAPrivateKey
From interface org.bouncycastle.jce.interfaces.PKCS12BagAttributeCarrier

Protected Constructors

protected JDKDSAPrivateKey ()

Public Methods

public boolean equals (Object o)

public String getAlgorithm ()

public DEREncodable getBagAttribute (DERObjectIdentifier oid)

public Enumeration getBagAttributeKeys ()

public byte[] getEncoded ()

Return a PKCS8 representation of the key. The sequence returned represents a full PrivateKeyInfo object.

Returns
  • a PKCS8 representation of the key.

public String getFormat ()

return the encoding format we produce in getEncoded().

Returns
  • the string "PKCS#8"

public DSAParams getParams ()

public BigInteger getX ()

public int hashCode ()

public void setBagAttribute (DERObjectIdentifier oid, DEREncodable attribute)