Top Fields Constructors Methods
org.bouncycastle.tls

public Class DefaultTlsSRPConfigVerifier

extends Object
implements TlsSRPConfigVerifier
Class Inheritance
All Implemented Interfaces
org.bouncycastle.tls.TlsSRPConfigVerifier
Imports
java.math.BigInteger, java.util.Vector, org.bouncycastle.tls.crypto.SRP6Group, .SRP6StandardGroups, .TlsSRPConfig

Field Summary

Modifier and TypeField and Description
private static final Vector<E>
protected final Vector<E>

Constructor Summary

AccessConstructor and Description
public
DefaultTlsSRPConfigVerifier()

Accept only the group parameters specified in RFC 5054 Appendix A.

public
DefaultTlsSRPConfigVerifier(Vector<E>
a Vector of acceptable SRP6Group.
groups
)

Specify a custom set of acceptable group parameters.

Method Summary

Modifier and TypeMethod and Description
public boolean
accept(TlsSRPConfig
the TlsSRPConfig to check.
srpConfig
)

Implements org.bouncycastle.tls.TlsSRPConfigVerifier.accept.

Check whether the given SRP configuration is acceptable for use.

protected boolean
protected boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

DEFAULT_GROUPSback to summary
private static final Vector<E> DEFAULT_GROUPS
groupsback to summary
protected final Vector<E> groups

Constructor Detail

DefaultTlsSRPConfigVerifierback to summary
public DefaultTlsSRPConfigVerifier()

Accept only the group parameters specified in RFC 5054 Appendix A.

DefaultTlsSRPConfigVerifierback to summary
public DefaultTlsSRPConfigVerifier(Vector<E> groups)

Specify a custom set of acceptable group parameters.

Parameters
groups:Vector<E>

a Vector of acceptable SRP6Group.

Method Detail

acceptback to summary
public boolean accept(TlsSRPConfig srpConfig)

Implements org.bouncycastle.tls.TlsSRPConfigVerifier.accept.

Doc from org.bouncycastle.tls.TlsSRPConfigVerifier.accept.

Check whether the given SRP configuration is acceptable for use.

Parameters
srpConfig:TlsSRPConfig

the TlsSRPConfig to check.

Returns:boolean

true if (and only if) the specified configuration is acceptable.

areGroupsEqualback to summary
protected boolean areGroupsEqual(TlsSRPConfig a, SRP6Group b)
areParametersEqualback to summary
protected boolean areParametersEqual(BigInteger a, BigInteger b)