Package org.bouncycastle.tls
Class DefaultTlsSRPConfigVerifier
- java.lang.Object
-
- org.bouncycastle.tls.DefaultTlsSRPConfigVerifier
-
- All Implemented Interfaces:
TlsSRPConfigVerifier
public class DefaultTlsSRPConfigVerifier extends java.lang.Object implements TlsSRPConfigVerifier
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Vector
groups
-
Constructor Summary
Constructors Constructor Description DefaultTlsSRPConfigVerifier()
Accept only the group parameters specified in RFC 5054 Appendix A.DefaultTlsSRPConfigVerifier(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 boolean
accept(TlsSRPConfig srpConfig)
Check whether the given SRP configuration is acceptable for use.protected boolean
areGroupsEqual(TlsSRPConfig a, SRP6Group b)
protected boolean
areParametersEqual(java.math.BigInteger a, java.math.BigInteger b)
-
-
-
Constructor Detail
-
DefaultTlsSRPConfigVerifier
public DefaultTlsSRPConfigVerifier()
Accept only the group parameters specified in RFC 5054 Appendix A.
-
DefaultTlsSRPConfigVerifier
public DefaultTlsSRPConfigVerifier(java.util.Vector groups)
Specify a custom set of acceptable group parameters.- Parameters:
groups
- aVector
of acceptableSRP6Group
.
-
-
Method Detail
-
accept
public boolean accept(TlsSRPConfig srpConfig)
Description copied from interface:TlsSRPConfigVerifier
Check whether the given SRP configuration is acceptable for use.- Specified by:
accept
in interfaceTlsSRPConfigVerifier
- Parameters:
srpConfig
- theTlsSRPConfig
to check.- Returns:
- true if (and only if) the specified configuration is acceptable.
-
areGroupsEqual
protected boolean areGroupsEqual(TlsSRPConfig a, SRP6Group b)
-
areParametersEqual
protected boolean areParametersEqual(java.math.BigInteger a, java.math.BigInteger b)
-
-