Package org.bouncycastle.tls
Class ServerSRPParams
- java.lang.Object
-
- org.bouncycastle.tls.ServerSRPParams
-
public class ServerSRPParams extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ServerSRPParams(java.math.BigInteger N, java.math.BigInteger g, byte[] s, java.math.BigInteger B)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidencode(java.io.OutputStream output)Encode thisServerSRPParamsto anOutputStream.java.math.BigIntegergetB()java.math.BigIntegergetG()java.math.BigIntegergetN()byte[]getS()static ServerSRPParamsparse(java.io.InputStream input)Parse aServerSRPParamsfrom anInputStream.
-
-
-
Method Detail
-
getB
public java.math.BigInteger getB()
-
getG
public java.math.BigInteger getG()
-
getN
public java.math.BigInteger getN()
-
getS
public byte[] getS()
-
encode
public void encode(java.io.OutputStream output) throws java.io.IOExceptionEncode thisServerSRPParamsto anOutputStream.- Parameters:
output- theOutputStreamto encode to.- Throws:
java.io.IOException
-
parse
public static ServerSRPParams parse(java.io.InputStream input) throws java.io.IOException
Parse aServerSRPParamsfrom anInputStream.- Parameters:
input- theInputStreamto parse from.- Returns:
- a
ServerSRPParamsobject. - Throws:
java.io.IOException
-
-