Package org.bouncycastle.crypto.tls
Class ServerSRPParams
- java.lang.Object
-
- org.bouncycastle.crypto.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 void
encode(java.io.OutputStream output)
Encode thisServerSRPParams
to anOutputStream
.java.math.BigInteger
getB()
java.math.BigInteger
getG()
java.math.BigInteger
getN()
byte[]
getS()
static ServerSRPParams
parse(java.io.InputStream input)
Parse aServerSRPParams
from 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.IOException
Encode thisServerSRPParams
to anOutputStream
.- Parameters:
output
- theOutputStream
to encode to.- Throws:
java.io.IOException
-
parse
public static ServerSRPParams parse(java.io.InputStream input) throws java.io.IOException
Parse aServerSRPParams
from anInputStream
.- Parameters:
input
- theInputStream
to parse from.- Returns:
- a
ServerSRPParams
object. - Throws:
java.io.IOException
-
-