Top Fields Constructors Methods
org.bouncycastle.tls

public Class ServerSRPParams

extends Object
Class Inheritance
Imports
java.io.IOException, .InputStream, .OutputStream, java.math.BigInteger, org.bouncycastle.util.Arrays

Field Summary

Modifier and TypeField and Description
protected BigInteger
B

protected BigInteger
g

protected BigInteger
N

protected byte[]
s

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
encode(OutputStream
the OutputStream to encode to.
output
)

Encode this ServerSRPParams to an OutputStream.

public BigInteger
getB()

public BigInteger
getG()

public BigInteger
getN()

public byte[]
getS()

public static ServerSRPParams

Returns:

a ServerSRPParams object.
parse
(InputStream
the InputStream to parse from.
input
)

Parse a ServerSRPParams from an InputStream.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

Bback to summary
protected BigInteger B
gback to summary
protected BigInteger g
Nback to summary
protected BigInteger N
sback to summary
protected byte[] s

Constructor Detail

ServerSRPParamsback to summary
public ServerSRPParams(BigInteger N, BigInteger g, byte[] s, BigInteger B)

Method Detail

encodeback to summary
public void encode(OutputStream output) throws IOException

Encode this ServerSRPParams to an OutputStream.

Parameters
output:OutputStream

the OutputStream to encode to.

getBback to summary
public BigInteger getB()
getGback to summary
public BigInteger getG()
getNback to summary
public BigInteger getN()
getSback to summary
public byte[] getS()
parseback to summary
public static ServerSRPParams parse(InputStream input) throws IOException

Parse a ServerSRPParams from an InputStream.

Parameters
input:InputStream

the InputStream to parse from.

Returns:ServerSRPParams

a ServerSRPParams object.