Package org.bouncycastle.crypto.tls
Class DefaultTlsSRPGroupVerifier
- java.lang.Object
-
- org.bouncycastle.crypto.tls.DefaultTlsSRPGroupVerifier
-
- All Implemented Interfaces:
TlsSRPGroupVerifier
public class DefaultTlsSRPGroupVerifier extends java.lang.Object implements TlsSRPGroupVerifier
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.util.VectorDEFAULT_GROUPSprotected java.util.Vectorgroups
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(SRP6GroupParameters group)Check whether the given SRP group parameters are acceptable for use.protected booleanareGroupsEqual(SRP6GroupParameters a, SRP6GroupParameters b)protected booleanareParametersEqual(java.math.BigInteger a, java.math.BigInteger b)
-
-
-
Constructor Detail
-
DefaultTlsSRPGroupVerifier
public DefaultTlsSRPGroupVerifier()
Accept only the group parameters specified in RFC 5054 Appendix A.
-
DefaultTlsSRPGroupVerifier
public DefaultTlsSRPGroupVerifier(java.util.Vector groups)
Specify a custom set of acceptable group parameters.- Parameters:
groups- aVectorof acceptableSRP6GroupParameters
-
-
Method Detail
-
accept
public boolean accept(SRP6GroupParameters group)
Description copied from interface:TlsSRPGroupVerifierCheck whether the given SRP group parameters are acceptable for use.- Specified by:
acceptin interfaceTlsSRPGroupVerifier- Parameters:
group- theSRP6GroupParametersto check- Returns:
- true if (and only if) the specified group parameters are acceptable
-
areGroupsEqual
protected boolean areGroupsEqual(SRP6GroupParameters a, SRP6GroupParameters b)
-
areParametersEqual
protected boolean areParametersEqual(java.math.BigInteger a, java.math.BigInteger b)
-
-