Class MetadataServiceListVersion
java.lang.Object
se.swedenconnect.opensaml.eidas.metadata.MetadataServiceListVersion
A type safe SAML MetadataServiceList enumeration.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionintGets the major version of the version.intGets the minor version of the version.toString()static MetadataServiceListVersionvalueOf(int majorVersion, int minorVersion) Gets the version given the major and minor version number.static MetadataServiceListVersionGets the version for a given version string, such as "1.0".
-
Field Details
-
VERSION_10
SAML version 1.0.
-
-
Method Details
-
valueOf
Gets the version given the major and minor version number.- Parameters:
majorVersion- major version numberminorVersion- minor version number- Returns:
- the version
-
valueOf
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
-