au.net.aba.crypto.provider
Class DHPubKey

java.lang.Object
  |
  +--au.net.aba.crypto.provider.DHPubKey

public class DHPubKey
extends java.lang.Object
implements DHPublicKey

a class representing a Diffie-Hellman public key. Note: incomplete.

See Also:
Serialized Form

Field Summary
static java.lang.String ident
           
 
Constructor Summary
protected DHPubKey(java.math.BigInteger y, java.math.BigInteger p, java.math.BigInteger g)
           
protected DHPubKey(java.math.BigInteger y, java.math.BigInteger p, java.math.BigInteger g, int l)
           
 
Method Summary
 java.lang.String getAlgorithm()
          return the algorithm for this key.
 byte[] getEncoded()
          return an encoded representation for this key.
 java.lang.String getFormat()
          return the format this key is in.
 DHParameterSpec getParams()
          Returns the key parameters.
 java.math.BigInteger getY()
          Returns the public value, y.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ident

public static final java.lang.String ident
Constructor Detail

DHPubKey

protected DHPubKey(java.math.BigInteger y,
                   java.math.BigInteger p,
                   java.math.BigInteger g)

DHPubKey

protected DHPubKey(java.math.BigInteger y,
                   java.math.BigInteger p,
                   java.math.BigInteger g,
                   int l)
Method Detail

getY

public java.math.BigInteger getY()
Returns the public value, y.
Specified by:
getY in interface DHPublicKey
Returns:
the public value, y.

getParams

public DHParameterSpec getParams()
Returns the key parameters.
Returns:
the key parameters.

getAlgorithm

public java.lang.String getAlgorithm()
return the algorithm for this key.

getFormat

public java.lang.String getFormat()
return the format this key is in.

getEncoded

public byte[] getEncoded()
return an encoded representation for this key.