Package org.forgerock.openam.core.realms
Interface Realm
-
public interface RealmModels a valid realm within OpenAM.On creation of a
Realminstance the realmStringwill be validated and used to look up the realm.Note: Realms are case-insensitive and therefore are compared ignoring case.
- Since:
- 14.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description StringasDN()Returns the realm in DN format.StringasPath()Returns the realm in path format.StringasRoutingPath()Returns the realm in routing path format.default booleanisParentOf(Realm subRealm)Returnstrueif this realm is a parent of the provided sub realm.
-
-
-
Method Detail
-
asPath
String asPath()
Returns the realm in path format. e.g./realmA/realmB- Returns:
- The realm path.
-
asRoutingPath
String asRoutingPath()
Returns the realm in routing path format. e.g./realms/root/realms/realmA/realms/realmB- Returns:
- The routing path.
-
asDN
String asDN()
Returns the realm in DN format. e.g. 'o=realmA,o=realmB,ou=services,dc=example,dc=com'.- Returns:
- The realm DN.
-
isParentOf
default boolean isParentOf(Realm subRealm)
Returnstrueif this realm is a parent of the provided sub realm.- Parameters:
subRealm- The potential sub realm.- Returns:
trueif this realm is a parent of the provided sub realm, otherwisefalse.- Throws:
NullPointerException- IfsubRealmisnull.
-
-