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 RealmOC1static RealmOC10static RealmOC14static RealmOC15static RealmOC19static RealmOC2static RealmOC20static RealmOC21static RealmOC23static RealmOC24static RealmOC26static RealmOC29static RealmOC3static RealmOC35static RealmOC4static RealmOC42static RealmOC51static RealmOC8static RealmOC9
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static voidclearAlloyRealms()intcompareTo(Realm other)Compares to realms lexicographically based on their realmId.booleanequals(Object o)StringgetRealmId()StringgetSecondLevelDomain()inthashCode()static Realmregister(String realmId, String secondLevelDomain)Register a new Realm.static Realmregister(String realmId, String secondLevelDomain, boolean isAlloyRealm)Register a new Realm.StringtoString()static RealmvalueOf(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
-
OC42
public static final Realm OC42
-
OC51
public static final Realm OC51
-
-
Method Detail
-
compareTo
public int compareTo(Realm other)
Compares to realms lexicographically based on their realmId.- Specified by:
compareToin 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()
-
-