public class RegistryHelper
extends java.lang.Object
Constructor and Description |
---|
RegistryHelper() |
Modifier and Type | Method and Description |
---|---|
void |
activate(org.osgi.service.component.ComponentContext cc) |
void |
deactivate(org.osgi.service.component.ComponentContext cc) |
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)
Gets the UserRegistry object for the given realm.
|
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.
|
void |
setWsSecurityService(org.osgi.framework.ServiceReference<com.ibm.ws.security.intfc.WSSecurityService> reference) |
void |
unsetWsSecurityService(org.osgi.framework.ServiceReference<com.ibm.ws.security.intfc.WSSecurityService> reference) |
public void setWsSecurityService(org.osgi.framework.ServiceReference<com.ibm.ws.security.intfc.WSSecurityService> reference)
public void unsetWsSecurityService(org.osgi.framework.ServiceReference<com.ibm.ws.security.intfc.WSSecurityService> reference)
public void activate(org.osgi.service.component.ComponentContext cc)
public void deactivate(org.osgi.service.component.ComponentContext cc)
public static UserRegistry getUserRegistry(java.lang.String realmName) throws WSSecurityException
realmName
- WSSecurityException
- if there is an internal errorpublic static java.util.List<java.lang.String> getInboundTrustedRealms(java.lang.String realmName) 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.
String
- (the realm name - null implies context based realm)WSSecurityException
public static boolean isRealmInboundTrusted(java.lang.String inboundRealm, java.lang.String localRealm)
inboundRealm
- localRealm
-