public class DefaultTlsSRPGroupVerifier extends java.lang.Object implements TlsSRPGroupVerifier
Modifier and Type | Field and Description |
---|---|
protected static java.util.Vector |
DEFAULT_GROUPS |
protected java.util.Vector |
groups |
Constructor and Description |
---|
DefaultTlsSRPGroupVerifier()
Accept only the group parameters specified in RFC 5054 Appendix A.
|
DefaultTlsSRPGroupVerifier(java.util.Vector groups)
Specify a custom set of acceptable group parameters.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(SRP6GroupParameters group)
Check whether the given SRP group parameters are acceptable for use.
|
protected boolean |
areGroupsEqual(SRP6GroupParameters a,
SRP6GroupParameters b) |
protected boolean |
areParametersEqual(java.math.BigInteger a,
java.math.BigInteger b) |
protected static final java.util.Vector DEFAULT_GROUPS
protected java.util.Vector groups
public DefaultTlsSRPGroupVerifier()
public DefaultTlsSRPGroupVerifier(java.util.Vector groups)
groups
- a Vector
of acceptable SRP6GroupParameters
public boolean accept(SRP6GroupParameters group)
TlsSRPGroupVerifier
accept
in interface TlsSRPGroupVerifier
group
- the SRP6GroupParameters
to checkprotected boolean areGroupsEqual(SRP6GroupParameters a, SRP6GroupParameters b)
protected boolean areParametersEqual(java.math.BigInteger a, java.math.BigInteger b)