IBM WebSphere Application ServerTM
Release 8

com.ibm.wsspi.security.registry
Class RegistryHelper

java.lang.Object
  extended by com.ibm.wsspi.security.registry.RegistryHelper

public class RegistryHelper
extends java.lang.Object


Constructor Summary
RegistryHelper()
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegistryHelper

public RegistryHelper()
Method Detail

getUserRegistry

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.

Parameters:
String - (the realm name - null implies context based realm)
Returns:
com.ibm.websphere.security.UserRegistry or null
Throws:
com.ibm.websphere.security.WSSecurityException

getInboundTrustedRealms

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.

Parameters:
String - (the realm name - null implies context based realm)
Returns:
java.util.List of trusted realms
Throws:
com.ibm.websphere.security.WSSecurityException

isRealmInboundTrusted

public static boolean isRealmInboundTrusted(java.lang.String inboundRealm,
                                            java.lang.String localRealm)

IBM WebSphere Application ServerTM
Release 8