public class ServerDHParams
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
protected DHPublicKeyParameters |
publicKey |
Constructor | Description |
---|---|
ServerDHParams(DHPublicKeyParameters publicKey) |
Modifier and Type | Method | Description |
---|---|---|
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 . |
protected DHPublicKeyParameters publicKey
public ServerDHParams(DHPublicKeyParameters publicKey)
public DHPublicKeyParameters getPublicKey()
public void encode(java.io.OutputStream output) throws java.io.IOException
ServerDHParams
to an OutputStream
.output
- the OutputStream
to encode to.java.io.IOException
public static ServerDHParams parse(java.io.InputStream input) throws java.io.IOException
ServerDHParams
from an InputStream
.input
- the InputStream
to parse from.ServerDHParams
object.java.io.IOException