Package com.oracle.bmc
Class Realm
- java.lang.Object
-
- com.oracle.bmc.Realm
-
- All Implemented Interfaces:
Serializable
,Comparable<Realm>
public final class Realm extends Object implements Serializable, Comparable<Realm>
Class containing all Identity realms.Accounts (tenancies) are per Realm.
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field 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
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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
-
-
-
Field Detail
-
OC1
public static final Realm OC1
-
OC2
public static final Realm OC2
-
OC3
public static final Realm OC3
-
OC4
public static final Realm OC4
-
OC8
public static final Realm OC8
-
OC9
public static final Realm OC9
-
OC10
public static final Realm OC10
-
OC14
public static final Realm OC14
-
OC20
public static final Realm OC20
-
OC19
public static final Realm OC19
-
OC24
public static final Realm OC24
-
OC21
public static final Realm OC21
-
OC26
public static final Realm OC26
-
OC15
public static final Realm OC15
-
OC29
public static final Realm OC29
-
OC23
public static final Realm OC23
-
OC35
public static final Realm OC35
-
-
Method Detail
-
compareTo
public int compareTo(Realm other)
Compares to realms lexicographically based on their realmId.- Specified by:
compareTo
in interfaceComparable<Realm>
- Parameters:
other
- The Realm to be compared.- Returns:
- the value 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.
-
values
public static Realm[] values()
All known Realms in this version of the SDK- Returns:
- Known realms
-
valueOf
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.)
- Parameters:
name
- The name of the realm- Returns:
- The Realm object matching the specified name, if available.
- Throws:
IllegalArgumentException
- if no realm exists with the specified name
-
register
public 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.
- Parameters:
realmId
- The realm id.secondLevelDomain
- The second level domain of the realm.- Returns:
- The registered Realm (or existing one if found).
-
register
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.
- Parameters:
realmId
- The realm id.secondLevelDomain
- The second level domain of the realm.isAlloyRealm
- ‘true’ if realm is from alloy configuration.- Returns:
- The registered Realm (or existing one if found).
-
getRealmId
public String getRealmId()
-
getSecondLevelDomain
public String getSecondLevelDomain()
-
clearAlloyRealms
protected static void clearAlloyRealms()
-
-