public class RegistryHelper
extends java.lang.Object
Constructor and Description |
---|
RegistryHelper() |
Modifier and Type | Method and Description |
---|---|
static java.util.List<java.lang.String> |
getInboundTrustedRealms(java.lang.String realmName)
The
getInboundTrustedRealms method returns the list of inbound trusted realms
corresponding to the active user registry that matches this realm. |
static UserRegistry |
getUserRegistry(java.lang.String realmName)
The
getUserRegistry method returns the active UserRegistry object that matches this realm. |
static boolean |
isRealmInboundTrusted(java.lang.String inboundRealm,
java.lang.String localRealm) |
public static UserRegistry getUserRegistry(java.lang.String realmName) throws com.ibm.websphere.security.WSSecurityException
The getUserRegistry
method returns the active UserRegistry object that matches this realm.
If the realm is null, it returns the user registry based on the thread context.
If no active user registry matching this realm is found, it will return null.
The realm should be available in the process being called. For example, if a localOS regsitry
is requested this will return the localOS registry of the process where this method is executed.
This method requires that the realm names are unique.
If the process does not host this realm, it will return null.
String
- (the realm name - null implies context based realm)com.ibm.websphere.security.WSSecurityException
public static java.util.List<java.lang.String> getInboundTrustedRealms(java.lang.String realmName) throws com.ibm.websphere.security.WSSecurityException
The getInboundTrustedRealms
method returns the list of inbound trusted realms
corresponding to the active user registry that matches this realm.
If the realm is null, it returns the inbound trusted realms for the realm (user registry)
based on the thread context.
The realm should be available in the process being called. If the process does
not host this realm, it will return an empty list.
If all realms are trusted, it will return "*" in the List
This method requires that the realm names are unique.
String
- (the realm name - null implies context based realm)com.ibm.websphere.security.WSSecurityException
public static boolean isRealmInboundTrusted(java.lang.String inboundRealm, java.lang.String localRealm)