Package com.isode.dsapi
Class SASLParameters.SSF
java.lang.Object
com.isode.dsapi.SASLParameters.SSF
- Enclosing class:
- SASLParameters
A convenience class for managing a min/max SSF (Security
Strength Factor) pair.
- Author:
- nh
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SSF
Construct a new object.The min and max parameters contain minimal and maximal SSF values. Each should be an integer in the range 0-256 that may be used to specify the desired approximate security layer strength. Values roughly correspond to the effective key length for encryption, where
- 0 means no protection
- 1 means integrity protection only
- >1 means key length of the cipher.
A value of -1 for either parameter means "do not specify a value".
The constant
SASLParameters.BEST_SSFmay be used to request the "best available" security strength factor.- Parameters:
min- minimum desired SSF. A value of -1 means "do not specify a minimum value"max- maximum desired SSF. A value of -1 means "do not specify a maximum value"- Throws:
IllegalArgumentException- if- min or max is less than -1, or greater
than
SASLParameters.BEST_SSF - min and max are positive and min is greater than max
- min or max is less than -1, or greater
than
-
-
Method Details
-
getMin
public int getMin()Returns min value in this object.- Returns:
- min value
-
getMax
public int getMax()Returns max value in this object.- Returns:
- max value
-
toString
-
equals
-
hashCode
public int hashCode()
-