public final class SAMLVersion extends Object
Modifier and Type | Field and Description |
---|---|
static SAMLVersion |
VERSION_10
SAML version 1.0.
|
static SAMLVersion |
VERSION_11
SAML Version 1.1.
|
static SAMLVersion |
VERSION_20
SAML Version 2.0.
|
Modifier and Type | Method and Description |
---|---|
int |
getMajorVersion()
Gets the major version of the SAML version.
|
int |
getMinorVersion()
Gets the minor version of the SAML version.
|
String |
toString() |
static SAMLVersion |
valueOf(int majorVersion,
int minorVersion)
Gets the SAMLVersion given the major and minor version number.
|
static SAMLVersion |
valueOf(String version)
Gets the SAMLVersion for a given version string, such as "2.0".
|
@Nonnull public static final SAMLVersion VERSION_10
@Nonnull public static final SAMLVersion VERSION_11
@Nonnull public static final SAMLVersion VERSION_20
public static final SAMLVersion valueOf(int majorVersion, int minorVersion)
majorVersion
- major version numberminorVersion
- minor version numberpublic static final SAMLVersion valueOf(@Nonnull String version)
version
- SAML version stringpublic int getMajorVersion()
public int getMinorVersion()
Copyright © 2016 JBoss by Red Hat. All rights reserved.