Class ServerSRPParams


  • public class ServerSRPParams
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.math.BigInteger B  
      protected java.math.BigInteger g  
      protected java.math.BigInteger N  
      protected byte[] s  
    • Constructor Summary

      Constructors 
      Constructor Description
      ServerSRPParams​(java.math.BigInteger N, java.math.BigInteger g, byte[] s, java.math.BigInteger B)  
    • Field Detail

      • N

        protected java.math.BigInteger N
      • g

        protected java.math.BigInteger g
      • B

        protected java.math.BigInteger B
      • s

        protected byte[] s
    • Constructor Detail

      • ServerSRPParams

        public ServerSRPParams​(java.math.BigInteger N,
                               java.math.BigInteger g,
                               byte[] s,
                               java.math.BigInteger B)
    • 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 this ServerSRPParams to an OutputStream.
        Parameters:
        output - the OutputStream to encode to.
        Throws:
        java.io.IOException
      • parse

        public static ServerSRPParams parse​(java.io.InputStream input)
                                     throws java.io.IOException
        Parse a ServerSRPParams from an InputStream.
        Parameters:
        input - the InputStream to parse from.
        Returns:
        a ServerSRPParams object.
        Throws:
        java.io.IOException