Top Description Fields Constructors Methods
java.security.spec

public Class DSAPublicKeySpec

extends Object
implements KeySpec
Class Inheritance
All Implemented Interfaces
java.security.spec.KeySpec
Imports
java.math.BigInteger

This class specifies a DSA public key with its associated parameters.
Author
Jan Luehe
Since
1.2
See Also
java.security.Key, java.security.KeyFactory, KeySpec, DSAPrivateKeySpec, X509EncodedKeySpec

Field Summary

Modifier and TypeField and Description
private final BigInteger
g

private final BigInteger
p

private final BigInteger
q

private final BigInteger
y

Constructor Summary

AccessConstructor and Description
public
DSAPublicKeySpec(BigInteger
the public key.
y
,
BigInteger
the prime.
p
,
BigInteger
the sub-prime.
q
,
BigInteger
the base.
g
)

Creates a new DSAPublicKeySpec with the specified parameter values.

Method Summary

Modifier and TypeMethod and Description
public BigInteger

Returns:

the base g.
getG
()

Returns the base g.

public BigInteger

Returns:

the prime p.
getP
()

Returns the prime p.

public BigInteger

Returns:

the sub-prime q.
getQ
()

Returns the sub-prime q.

public BigInteger

Returns:

the public key y.
getY
()

Returns the public key y.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

gback to summary
private final BigInteger g
pback to summary
private final BigInteger p
qback to summary
private final BigInteger q
yback to summary
private final BigInteger y

Constructor Detail

DSAPublicKeySpecback to summary
public DSAPublicKeySpec(BigInteger y, BigInteger p, BigInteger q, BigInteger g)

Creates a new DSAPublicKeySpec with the specified parameter values.

Parameters
y:BigInteger

the public key.

p:BigInteger

the prime.

q:BigInteger

the sub-prime.

g:BigInteger

the base.

Method Detail

getGback to summary
public BigInteger getG()

Returns the base g.

Returns:BigInteger

the base g.

getPback to summary
public BigInteger getP()

Returns the prime p.

Returns:BigInteger

the prime p.

getQback to summary
public BigInteger getQ()

Returns the sub-prime q.

Returns:BigInteger

the sub-prime q.

getYback to summary
public BigInteger getY()

Returns the public key y.

Returns:BigInteger

the public key y.