Class SASLParameters.SSF

java.lang.Object
com.isode.dsapi.SASLParameters.SSF
Enclosing class:
SASLParameters

public static class SASLParameters.SSF extends Object
A convenience class for managing a min/max SSF (Security Strength Factor) pair.
Author:
nh
  • Constructor Details

    • SSF

      public SSF(int min, int max) throws IllegalArgumentException
      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.
      Note that the actual SSF value used at bind time may be constrained by the type of license installed on the system; for a system without a full HGE license, certain SSF values may disallowed.

      A value of -1 for either parameter means "do not specify a value".

      The constant SASLParameters.BEST_SSF may 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
  • 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

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object