Class MetadataServiceListVersion
- java.lang.Object
-
- se.litsec.eidas.opensaml.metadata.MetadataServiceListVersion
-
public final class MetadataServiceListVersion extends Object
A type safe SAML MetadataServiceList enumeration.
-
-
Field Summary
Fields Modifier and Type Field Description static MetadataServiceListVersion
VERSION_10
SAML version 1.0.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getMajorVersion()
Gets the major version of the version.int
getMinorVersion()
Gets the minor version of the version.String
toString()
static MetadataServiceListVersion
valueOf(int majorVersion, int minorVersion)
Gets the version given the major and minor version number.static MetadataServiceListVersion
valueOf(String version)
Gets the version for a given version string, such as "1.0".
-
-
-
Field Detail
-
VERSION_10
public static final MetadataServiceListVersion VERSION_10
SAML version 1.0.
-
-
Method Detail
-
valueOf
public static final MetadataServiceListVersion valueOf(int majorVersion, int minorVersion)
Gets the version given the major and minor version number.- Parameters:
majorVersion
- major version numberminorVersion
- minor version number- Returns:
- the version
-
valueOf
public static final 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
-
-