public final class Realm extends Object implements Serializable, Comparable<Realm>
Class containing all Identity realms.
Accounts (tenancies) are per Realm.
Modifier and Type | Field and Description |
---|---|
static Realm |
OC1 |
static Realm |
OC10 |
static Realm |
OC14 |
static Realm |
OC15 |
static Realm |
OC19 |
static Realm |
OC2 |
static Realm |
OC20 |
static Realm |
OC21 |
static Realm |
OC23 |
static Realm |
OC24 |
static Realm |
OC26 |
static Realm |
OC29 |
static Realm |
OC3 |
static Realm |
OC35 |
static Realm |
OC4 |
static Realm |
OC8 |
static Realm |
OC9 |
Modifier and Type | Method and Description |
---|---|
protected static void |
clearAlloyRealms() |
int |
compareTo(Realm other)
Compares to realms lexicographically based on their realmId.
|
boolean |
equals(Object o) |
String |
getRealmId() |
String |
getSecondLevelDomain() |
int |
hashCode() |
static Realm |
register(String realmId,
String secondLevelDomain)
Register a new Realm.
|
static Realm |
register(String realmId,
String secondLevelDomain,
boolean isAlloyRealm)
Register a new Realm.
|
String |
toString() |
static Realm |
valueOf(String name)
Returns the Realm object matching the specified name.
|
static Realm[] |
values()
All known Realms in this version of the SDK
|
public static final Realm OC1
public static final Realm OC2
public static final Realm OC3
public static final Realm OC4
public static final Realm OC8
public static final Realm OC9
public static final Realm OC10
public static final Realm OC14
public static final Realm OC20
public static final Realm OC19
public static final Realm OC24
public static final Realm OC21
public static final Realm OC26
public static final Realm OC15
public static final Realm OC29
public static final Realm OC23
public static final Realm OC35
public int compareTo(Realm other)
Compares to realms lexicographically based on their realmId.
compareTo
in interface Comparable<Realm>
other
- The Realm to be compared.0
if the realmId of the compared Realm is equal to the realmId of
this Realm; a value less than 0
if the realmId of this Realm is lexicographically
less than the realmId of the compared Realm; and a value greater than 0
if the
realmId of this Realm is lexicographically greater than the realmId of the compared
Realm.public static Realm[] values()
All known Realms in this version of the SDK
public static Realm valueOf(@Nonnull String name) throws IllegalArgumentException
Returns the Realm object matching the specified name. The name must match exactly. (Extraneous whitespace characters are not permitted.)
name
- The name of the realmIllegalArgumentException
- if no realm exists with the specified namepublic static Realm register(@Nonnull String realmId, @Nonnull String secondLevelDomain)
Register a new Realm. Used to allow the SDK to be forward compatible with unreleased realms.
realmId
- The realm id.secondLevelDomain
- The second level domain of the realm.public static Realm register(@Nonnull String realmId, @Nonnull String secondLevelDomain, boolean isAlloyRealm)
Register a new Realm. Used to allow the SDK to be forward compatible with unreleased realms.
realmId
- The realm id.secondLevelDomain
- The second level domain of the realm.isAlloyRealm
- ‘true’ if realm is from alloy configuration.public String getRealmId()
public String getSecondLevelDomain()
protected static void clearAlloyRealms()
Copyright © 2016–2024. All rights reserved.