Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

javax.crypto.spec
Class DHPublicKeySpec  view DHPublicKeySpec download DHPublicKeySpec.java

java.lang.Object
  extended byjavax.crypto.spec.DHPublicKeySpec
All Implemented Interfaces:
java.security.spec.KeySpec

public class DHPublicKeySpec
extends java.lang.Object
implements java.security.spec.KeySpec

A wrapper for Diffie-Hellman public key data.

Since:
1.4

Field Summary
private  java.math.BigInteger g
          The base generator.
private  java.math.BigInteger p
          The prime modulus.
private  java.math.BigInteger y
          The public value.
 
Constructor Summary
DHPublicKeySpec(java.math.BigInteger y, java.math.BigInteger p, java.math.BigInteger g)
          Create a new Diffie-Hellman public key spec.
 
Method Summary
 java.math.BigInteger getG()
          Get the base generator.
 java.math.BigInteger getP()
          Get the prime modulus.
 java.math.BigInteger getY()
          Get the public value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

g

private java.math.BigInteger g
The base generator.


p

private java.math.BigInteger p
The prime modulus.


y

private java.math.BigInteger y
The public value.

Constructor Detail

DHPublicKeySpec

public DHPublicKeySpec(java.math.BigInteger y,
                       java.math.BigInteger p,
                       java.math.BigInteger g)
Create a new Diffie-Hellman public key spec.

Method Detail

getG

public java.math.BigInteger getG()
Get the base generator.


getP

public java.math.BigInteger getP()
Get the prime modulus.


getY

public java.math.BigInteger getY()
Get the public value.