Bouncy Castle Cryptography 1.50

org.bouncycastle.crypto.tls
Class ServerDHParams

java.lang.Object
  extended by org.bouncycastle.crypto.tls.ServerDHParams

public class ServerDHParams
extends java.lang.Object


Field Summary
protected  DHPublicKeyParameters publicKey
           
 
Constructor Summary
ServerDHParams(DHPublicKeyParameters publicKey)
           
 
Method Summary
 void encode(java.io.OutputStream output)
          Encode this ServerDHParams to an OutputStream.
 DHPublicKeyParameters getPublicKey()
           
static ServerDHParams parse(java.io.InputStream input)
          Parse a ServerDHParams from an InputStream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

publicKey

protected DHPublicKeyParameters publicKey
Constructor Detail

ServerDHParams

public ServerDHParams(DHPublicKeyParameters publicKey)
Method Detail

getPublicKey

public DHPublicKeyParameters getPublicKey()

encode

public void encode(java.io.OutputStream output)
            throws java.io.IOException
Encode this ServerDHParams to an OutputStream.

Parameters:
output - the OutputStream to encode to.
Throws:
java.io.IOException

parse

public static ServerDHParams parse(java.io.InputStream input)
                            throws java.io.IOException
Parse a ServerDHParams from an InputStream.

Parameters:
input - the InputStream to parse from.
Returns:
a ServerDHParams object.
Throws:
java.io.IOException

Bouncy Castle Cryptography 1.50