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
Provides methods to retrieve user registry information
Since:
WAS 7.0

Constructor Summary

Constructor and Description
RegistryHelper()

Method Summary

Modifier and Type Method and Description
  1. void
activate(ComponentContext cc)
  1. void
deactivate(ComponentContext cc)
  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)
Gets the UserRegistry object for the given realm.
  1. static
  2. boolean
isRealmInboundTrusted(java.lang.String inboundRealm,java.lang.String localRealm)
Determine if the inbound realm is one of the trusted realms of the specified local realm.
  1. void
setWsSecurityService( reference)
  1. void
unsetWsSecurityService( reference)
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

RegistryHelper

  1. public RegistryHelper()

Method Detail

setWsSecurityService

  1. public void setWsSecurityService( reference)

unsetWsSecurityService

  1. public void unsetWsSecurityService( reference)

activate

  1. public void activate(ComponentContext cc)

deactivate

  1. public void deactivate(ComponentContext cc)

getUserRegistry

  1. public static UserRegistry getUserRegistry( java.lang.String realmName)
  2. throws WSSecurityException
Gets the UserRegistry object for the given realm. If the realm name is null returns the active registry. If the realm is not valid, or security is not enabled, or no registry is configured, returns null.
Parameters:
realmName -
Returns:
UserRegistry object
Throws:
WSSecurityException - if there is an internal error

getInboundTrustedRealms

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

isRealmInboundTrusted

  1. public static boolean isRealmInboundTrusted( java.lang.String inboundRealm,
  2. java.lang.String localRealm)
Determine if the inbound realm is one of the trusted realms of the specified local realm. If the local realm is null the realm of the current active user registry will be used.
Parameters:
inboundRealm -
localRealm -
Returns:
true - inbound realm is trusted, false - inbound reamn is not trusted