public final class Realm extends Object
Modifier and Type | Field and Description |
---|---|
static Realm |
ROOT_REALM
The root realm, known as "/".
|
Modifier and Type | Method and Description |
---|---|
String |
getName()
Returns the fully qualified realm's name: '/finances/employees'
The returned name always starts with /, and never ends with /.
|
List<String> |
getSegments()
Returns the unmodifiable list of the segments composing the realm.
|
static Realm |
parseRealm(String name)
Creates a new Realm by parsing the given name.
|
public static final Realm ROOT_REALM
public static Realm parseRealm(String name)
Example: root or / or /root finances finances/employees finances employees /finances/employees/europe /finances employees/europe /root/finances/employees/europe ////realms/finances/realms/employees
name
- The name of the realm to parse. It could be "finances" or "consumers/europe/france" for example. If name is
null or empty then the ROOT_REALM will be returned.public String getName()
public List<String> getSegments()
Copyright 2011-2017 ForgeRock AS.