Package com.ibm.wsspi.security.registry
Class RegistryHelper
- java.lang.Object
- 
- com.ibm.wsspi.security.registry.RegistryHelper
 
- 
 public class RegistryHelper extends java.lang.ObjectProvides methods to retrieve user registry information- Since:
- WAS 7.0
 
- 
- 
Constructor SummaryConstructors Constructor Description RegistryHelper()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivate(org.osgi.service.component.ComponentContext cc)voiddeactivate(org.osgi.service.component.ComponentContext cc)static java.util.List<java.lang.String>getInboundTrustedRealms(java.lang.String realmName)ThegetInboundTrustedRealmsmethod returns the list of inbound trusted realms corresponding to the active user registry that matches this realm.static UserRegistrygetUserRegistry(java.lang.String realmName)Gets the UserRegistry object for the given realm.static booleanisRealmInboundTrusted(java.lang.String inboundRealm, java.lang.String localRealm)Determine if the inbound realm is one of the trusted realms of the specified local realm.voidsetWsSecurityService(org.osgi.framework.ServiceReference<com.ibm.ws.security.intfc.WSSecurityService> reference)voidunsetWsSecurityService(org.osgi.framework.ServiceReference<com.ibm.ws.security.intfc.WSSecurityService> reference)
 
- 
- 
- 
Method Detail- 
setWsSecurityServicepublic void setWsSecurityService(org.osgi.framework.ServiceReference<com.ibm.ws.security.intfc.WSSecurityService> reference) 
 - 
unsetWsSecurityServicepublic void unsetWsSecurityService(org.osgi.framework.ServiceReference<com.ibm.ws.security.intfc.WSSecurityService> reference) 
 - 
activatepublic void activate(org.osgi.service.component.ComponentContext cc) 
 - 
deactivatepublic void deactivate(org.osgi.service.component.ComponentContext cc) 
 - 
getUserRegistrypublic static UserRegistry getUserRegistry(java.lang.String realmName) 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
 
 - 
getInboundTrustedRealmspublic static java.util.List<java.lang.String> getInboundTrustedRealms(java.lang.String realmName) throws WSSecurityExceptionThe getInboundTrustedRealmsmethod 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.Listof trusted realms 
- Throws:
- WSSecurityException
 
 - 
isRealmInboundTrustedpublic static 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. 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
 
 
- 
 
-