java.security.spec
Class DSAPublicKeySpec

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by java.security.spec.DSAPublicKeySpec
All Implemented Interfaces:
KeySpec sample code for java.security.spec.KeySpec definition code for java.security.spec.KeySpec

public class DSAPublicKeySpec
extends Object sample code for java.lang.Object definition code for java.lang.Object
implements KeySpec sample code for java.security.spec.KeySpec definition code for java.security.spec.KeySpec

This class specifies a DSA public key with its associated parameters.

Since:
1.2
See Also:
Key sample code for java.security.Key definition code for java.security.Key , KeyFactory sample code for java.security.KeyFactory definition code for java.security.KeyFactory , KeySpec sample code for java.security.spec.KeySpec definition code for java.security.spec.KeySpec , DSAPrivateKeySpec sample code for java.security.spec.DSAPrivateKeySpec definition code for java.security.spec.DSAPrivateKeySpec , X509EncodedKeySpec sample code for java.security.spec.X509EncodedKeySpec definition code for java.security.spec.X509EncodedKeySpec

Constructor Summary
DSAPublicKeySpec sample code for java.security.spec.DSAPublicKeySpec.DSAPublicKeySpec(java.math.BigInteger, java.math.BigInteger, java.math.BigInteger, java.math.BigInteger) definition code for java.security.spec.DSAPublicKeySpec.DSAPublicKeySpec(java.math.BigInteger, java.math.BigInteger, java.math.BigInteger, java.math.BigInteger) (BigInteger sample code for java.math.BigInteger definition code for java.math.BigInteger  y, BigInteger sample code for java.math.BigInteger definition code for java.math.BigInteger  p, BigInteger sample code for java.math.BigInteger definition code for java.math.BigInteger  q, BigInteger sample code for java.math.BigInteger definition code for java.math.BigInteger  g)
          Creates a new DSAPublicKeySpec with the specified parameter values.
 
Method Summary
 BigInteger sample code for java.math.BigInteger definition code for java.math.BigInteger getG sample code for java.security.spec.DSAPublicKeySpec.getG() definition code for java.security.spec.DSAPublicKeySpec.getG() ()
          Returns the base g.
 BigInteger sample code for java.math.BigInteger definition code for java.math.BigInteger getP sample code for java.security.spec.DSAPublicKeySpec.getP() definition code for java.security.spec.DSAPublicKeySpec.getP() ()
          Returns the prime p.
 BigInteger sample code for java.math.BigInteger definition code for java.math.BigInteger getQ sample code for java.security.spec.DSAPublicKeySpec.getQ() definition code for java.security.spec.DSAPublicKeySpec.getQ() ()
          Returns the sub-prime q.
 BigInteger sample code for java.math.BigInteger definition code for java.math.BigInteger getY sample code for java.security.spec.DSAPublicKeySpec.getY() definition code for java.security.spec.DSAPublicKeySpec.getY() ()
          Returns the public key y.
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Constructor Detail

DSAPublicKeySpec sample code for java.security.spec.DSAPublicKeySpec(java.math.BigInteger, java.math.BigInteger, java.math.BigInteger, java.math.BigInteger) definition code for java.security.spec.DSAPublicKeySpec(java.math.BigInteger, java.math.BigInteger, java.math.BigInteger, java.math.BigInteger)

public DSAPublicKeySpec(BigInteger sample code for java.math.BigInteger definition code for java.math.BigInteger  y,
                        BigInteger sample code for java.math.BigInteger definition code for java.math.BigInteger  p,
                        BigInteger sample code for java.math.BigInteger definition code for java.math.BigInteger  q,
                        BigInteger sample code for java.math.BigInteger definition code for java.math.BigInteger  g)
Creates a new DSAPublicKeySpec with the specified parameter values.

Parameters:
y - the public key.
p - the prime.
q - the sub-prime.
g - the base.
Method Detail

getY sample code for java.security.spec.DSAPublicKeySpec.getY() definition code for java.security.spec.DSAPublicKeySpec.getY()

public BigInteger sample code for java.math.BigInteger definition code for java.math.BigInteger  getY()
Returns the public key y.

Returns:
the public key y.

getP sample code for java.security.spec.DSAPublicKeySpec.getP() definition code for java.security.spec.DSAPublicKeySpec.getP()

public BigInteger sample code for java.math.BigInteger definition code for java.math.BigInteger  getP()
Returns the prime p.

Returns:
the prime p.

getQ sample code for java.security.spec.DSAPublicKeySpec.getQ() definition code for java.security.spec.DSAPublicKeySpec.getQ()

public BigInteger sample code for java.math.BigInteger definition code for java.math.BigInteger  getQ()
Returns the sub-prime q.

Returns:
the sub-prime q.

getG sample code for java.security.spec.DSAPublicKeySpec.getG() definition code for java.security.spec.DSAPublicKeySpec.getG()

public BigInteger sample code for java.math.BigInteger definition code for java.math.BigInteger  getG()
Returns the base g.

Returns:
the base g.