All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bouncycastle.tls.TlsSRPLoginParameters Maven / Gradle / Ivy

There is a newer version: 1.78.1
Show newest version
package org.bouncycastle.tls;

import java.math.BigInteger;

import org.bouncycastle.tls.crypto.TlsSRPConfig;
import org.bouncycastle.util.Arrays;

public class TlsSRPLoginParameters
{
    protected byte[] identity;
    protected TlsSRPConfig srpConfig;
    protected BigInteger verifier;
    protected byte[] salt;

    public TlsSRPLoginParameters(byte[] identity, TlsSRPConfig srpConfig, BigInteger verifier, byte[] salt)
    {
        this.identity = Arrays.clone(identity);
        this.srpConfig = srpConfig;
        this.verifier = verifier;
        this.salt = Arrays.clone(salt);
    }

    public TlsSRPConfig getConfig()
    {
        return srpConfig;
    }

    public byte[] getIdentity()
    {
        return identity;
    }

    public byte[] getSalt()
    {
        return salt;
    }

    public BigInteger getVerifier()
    {
        return verifier;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy