![JAR search and dependency download from the Maven repository](/logo.png)
nl.open.jwtdependency.org.bouncycastle.crypto.params.GOST3410Parameters Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-jwt-nodependencies Show documentation
Show all versions of java-jwt-nodependencies Show documentation
This is a drop in replacement for the auth0 java-jwt library (see https://github.com/auth0/java-jwt). This jar makes sure there are no external dependencies (e.g. fasterXml, Apacha Commons) needed. This is useful when deploying to an application server (e.g. tomcat with Alfreso or Pega).
The newest version!
package org.bouncycastle.crypto.params;
import org.bouncycastle.crypto.CipherParameters;
import java.math.BigInteger;
public class GOST3410Parameters
implements CipherParameters
{
private BigInteger p;
private BigInteger q;
private BigInteger a;
private GOST3410ValidationParameters validation;
public GOST3410Parameters(
BigInteger p,
BigInteger q,
BigInteger a)
{
this.p = p;
this.q = q;
this.a = a;
}
public GOST3410Parameters(
BigInteger p,
BigInteger q,
BigInteger a,
GOST3410ValidationParameters params)
{
this.a = a;
this.p = p;
this.q = q;
this.validation = params;
}
public BigInteger getP()
{
return p;
}
public BigInteger getQ()
{
return q;
}
public BigInteger getA()
{
return a;
}
public GOST3410ValidationParameters getValidationParameters()
{
return validation;
}
public int hashCode()
{
return p.hashCode() ^ q.hashCode() ^ a.hashCode();
}
public boolean equals(
Object obj)
{
if (!(obj instanceof GOST3410Parameters))
{
return false;
}
GOST3410Parameters pm = (GOST3410Parameters)obj;
return (pm.getP().equals(p) && pm.getQ().equals(q) && pm.getA().equals(a));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy