Top Description Fields Constructors Methods
org.bouncycastle.bcpg

public Class DSAPublicBCPGKey

extends BCPGObject
implements BCPGKey
Class Inheritance
All Implemented Interfaces
org.bouncycastle.bcpg.BCPGKey, org.bouncycastle.util.Encodable
Imports
java.io.IOException, java.math.BigInteger

base class for a DSA Public Key.

Field Summary

Modifier and TypeField and Description
pack-priv MPInteger
g

pack-priv MPInteger
p

pack-priv MPInteger
q

pack-priv MPInteger
y

Constructor Summary

AccessConstructor and Description
public
DSAPublicBCPGKey(BCPGInputStream
the stream to read the packet from.
in
)

public

Method Summary

Modifier and TypeMethod and Description
public void
public byte[]
public String
public BigInteger

Returns:

g
getG
()

public BigInteger

Returns:

p
getP
()

public BigInteger

Returns:

q
getQ
()

public BigInteger

Returns:

g
getY
()

Field Detail

gback to summary
pack-priv MPInteger g
pback to summary
pack-priv MPInteger p
qback to summary
pack-priv MPInteger q
yback to summary
pack-priv MPInteger y

Constructor Detail

DSAPublicBCPGKeyback to summary
public DSAPublicBCPGKey(BCPGInputStream in) throws IOException
Parameters
in:BCPGInputStream

the stream to read the packet from.

DSAPublicBCPGKeyback to summary
public DSAPublicBCPGKey(BigInteger p, BigInteger q, BigInteger g, BigInteger y)

Method Detail

encodeback to summary
public void encode(BCPGOutputStream out) throws IOException

Implements abstract org.bouncycastle.bcpg.BCPGObject.encode.

getEncodedback to summary
public byte[] getEncoded()

Overrides org.bouncycastle.bcpg.BCPGObject.getEncoded.

Implements org.bouncycastle.bcpg.BCPGKey.getEncoded, org.bouncycastle.util.Encodable.getEncoded.

return the standard PGP encoding of the key.

Returns:byte[]

Doc from org.bouncycastle.bcpg.BCPGKey.getEncoded.

byte[]

See Also
org.bouncycastle.bcpg.BCPGKey#getEncoded()
getFormatback to summary
public String getFormat()

Implements org.bouncycastle.bcpg.BCPGKey.getFormat.

return "PGP"

Returns:String

Doc from org.bouncycastle.bcpg.BCPGKey.getFormat.

"RAW" or "PGP"

See Also
org.bouncycastle.bcpg.BCPGKey#getFormat()
getGback to summary
public BigInteger getG()
Returns:BigInteger

g

getPback to summary
public BigInteger getP()
Returns:BigInteger

p

getQback to summary
public BigInteger getQ()
Returns:BigInteger

q

getYback to summary
public BigInteger getY()
Returns:BigInteger

g