org.bouncycastle.tls.TlsSRPLoginParameters Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bctls-jdk14 Show documentation
Show all versions of bctls-jdk14 Show documentation
The Bouncy Castle Java APIs for TLS and DTLS.
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;
}
}