Package org.bouncycastle.crypto.tls
Class ServerDHParams
- java.lang.Object
-
- org.bouncycastle.crypto.tls.ServerDHParams
-
public class ServerDHParams extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected DHPublicKeyParameterspublicKey
-
Constructor Summary
Constructors Constructor Description ServerDHParams(DHPublicKeyParameters publicKey)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidencode(java.io.OutputStream output)Encode thisServerDHParamsto anOutputStream.DHPublicKeyParametersgetPublicKey()static ServerDHParamsparse(java.io.InputStream input)Parse aServerDHParamsfrom anInputStream.
-
-
-
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.IOExceptionEncode thisServerDHParamsto anOutputStream.- Parameters:
output- theOutputStreamto encode to.- Throws:
java.io.IOException
-
parse
public static ServerDHParams parse(java.io.InputStream input) throws java.io.IOException
Parse aServerDHParamsfrom anInputStream.- Parameters:
input- theInputStreamto parse from.- Returns:
- a
ServerDHParamsobject. - Throws:
java.io.IOException
-
-