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 impersonator Show documentation
Show all versions of impersonator Show documentation
Spoof TLS/JA3/JA4 and HTTP/2 fingerprints in Java
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;
}
}