Class MetadataServiceListVersion
java.lang.Object
se.swedenconnect.opensaml.eidas.metadata.MetadataServiceListVersion
A type safe SAML MetadataServiceList enumeration.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Gets the major version of the version.int
Gets the minor version of the version.toString()
static MetadataServiceListVersion
valueOf
(int majorVersion, int minorVersion) Gets the version given the major and minor version number.static MetadataServiceListVersion
Gets 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
-