org.bouncycastle.tls.TlsSRPLoginParameters Maven / Gradle / Ivy
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;
}
}