public static enum OpenAmServer.OpenAmVersion extends Enum<OpenAmServer.OpenAmVersion>
Enum Constant and Description |
---|
FOURTEEN
Represents version 14.x.x of OpenAM.
|
THIRTEEN
Represents version 13.x.x of OpenAM.
|
Modifier and Type | Field and Description |
---|---|
static OpenAmServer.OpenAmVersion |
DEFAULT_AM_VERSION
The default AM Version used by the toolkit.
|
Modifier and Type | Method and Description |
---|---|
abstract String |
normalizePathComponent(Realm realm)
Returns the path as it should be used in URIs based on the combination of the realm value and
OpenAmServer.OpenAmVersion . |
static OpenAmServer.OpenAmVersion |
parseOpenAmVersion(String version)
For the given version string, return the corresponding
OpenAmServer.OpenAmVersion enum value. |
static OpenAmServer.OpenAmVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OpenAmServer.OpenAmVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OpenAmServer.OpenAmVersion THIRTEEN
public static final OpenAmServer.OpenAmVersion FOURTEEN
public static final OpenAmServer.OpenAmVersion DEFAULT_AM_VERSION
public static OpenAmServer.OpenAmVersion[] values()
for (OpenAmServer.OpenAmVersion c : OpenAmServer.OpenAmVersion.values()) System.out.println(c);
public static OpenAmServer.OpenAmVersion valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic abstract String normalizePathComponent(Realm realm)
OpenAmServer.OpenAmVersion
.realm
- The realm to use when creating the normalised path value.public static OpenAmServer.OpenAmVersion parseOpenAmVersion(String version)
OpenAmServer.OpenAmVersion
enum value.
Defaults to DEFAULT_AM_VERSION
if the version string is empty/null or does
not match a known version.version
- A representation of the OpenAM version being accessed, for example 13.5.1 or 14.1.0Copyright 2011-2017 ForgeRock AS.