com.ibm.wsspi.security.registry

Class RegistryHelper

  1. java.lang.Object
  2. extended bycom.ibm.wsspi.security.registry.RegistryHelper

  1. public class RegistryHelper
  2. extends java.lang.Object

Constructor Summary

Constructor and Description
RegistryHelper()

Method Summary

Modifier and Type Method and Description
  1. static
  2. 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.
  1. static
  2. UserRegistry
getUserRegistry(java.lang.String realmName)
The getUserRegistry method returns the active UserRegistry object that matches this realm.
  1. static
  2. 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

  1. public RegistryHelper()

Method Detail

getUserRegistry

  1. public static UserRegistry getUserRegistry( java.lang.String realmName)
  2. 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.

Returns:
com.ibm.websphere.security.UserRegistry or null
Throws:
com.ibm.websphere.security.WSSecurityException

getInboundTrustedRealms

  1. public static java.util.List<java.lang.String> getInboundTrustedRealms( java.lang.String realmName)
  2. 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.

Returns:
java.util.List of trusted realms
Throws:
com.ibm.websphere.security.WSSecurityException

isRealmInboundTrusted

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