Class SADVersion
java.lang.Object
se.swedenconnect.opensaml.sweid.saml2.signservice.sap.SADVersion
A type safe SAD version enumeration.
- Author:
- Martin Lindström (martin@idsec.se)
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Gets the major version of the SAD version.int
Gets the minor version of the SAD version.toString()
static SADVersion
valueOf
(int majorVersion, int minorVersion) Gets the SADVersion given the major and minor version number.static SADVersion
Gets the SADVersion for a given version string, such as "1.0".
-
Field Details
-
VERSION_10
SAD version 1.0.
-
-
Method Details
-
valueOf
Gets the SADVersion given the major and minor version number.- Parameters:
majorVersion
- major version numberminorVersion
- minor version number- Returns:
- the SADVersion
-
valueOf
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
-
equals
-