Class MetadataServiceListVersion

java.lang.Object
se.swedenconnect.opensaml.eidas.metadata.MetadataServiceListVersion

public final class MetadataServiceListVersion extends Object
A type safe SAML MetadataServiceList enumeration.
  • Field Details

  • Method Details

    • valueOf

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

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

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

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

      public String toString()
      Overrides:
      toString in class Object