Class SADVersion
- java.lang.Object
-
- se.litsec.swedisheid.opensaml.saml2.signservice.sap.SADVersion
-
public class SADVersion extends Object
A type safe SAD version enumeration.- Author:
- Martin Lindström (martin.lindstrom@litsec.se)
-
-
Field Summary
Fields Modifier and Type Field Description static SADVersionVERSION_10SAD version 1.0.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)intgetMajorVersion()Gets the major version of the SAD version.intgetMinorVersion()Gets the minor version of the SAD version.StringtoString()static SADVersionvalueOf(int majorVersion, int minorVersion)Gets the SADVersion given the major and minor version number.static SADVersionvalueOf(String version)Gets the SADVersion for a given version string, such as "1.0".
-
-
-
Field Detail
-
VERSION_10
public static final SADVersion VERSION_10
SAD version 1.0.
-
-
Method Detail
-
valueOf
public static SADVersion valueOf(int majorVersion, int minorVersion)
Gets the SADVersion given the major and minor version number.- Parameters:
majorVersion- major version numberminorVersion- 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
-
-