java.lang.Object
se.swedenconnect.opensaml.sweid.saml2.signservice.sap.SADVersion

public class SADVersion extends Object
A type safe SAD version enumeration.
Author:
Martin Lindström (martin@idsec.se)
  • Field Details

    • VERSION_10

      public static final SADVersion VERSION_10
      SAD version 1.0.
  • Method Details

    • valueOf

      public static SADVersion valueOf(int majorVersion, int minorVersion)
      Gets the SADVersion given the major and minor version number.
      Parameters:
      majorVersion - major version number
      minorVersion - minor version number
      Returns:
      the SADVersion
    • valueOf

      public static SADVersion valueOf(String version)
      Gets the SADVersion for a given version string, such as "1.0".
      Parameters:
      version - SAD version string
      Returns:
      SADVersion for the given string
    • getMajorVersion

      public int getMajorVersion()
      Gets the major version of the SAD version.
      Returns:
      the major version of the SAD version
    • getMinorVersion

      public int getMinorVersion()
      Gets the minor version of the SAD version.
      Returns:
      the minor version of the SAD version
    • toString

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

      public boolean equals(Object obj)
      Overrides:
      equals in class Object