public class SecurityPolicyConfigurator extends Object
Modifier and Type | Field and Description |
---|---|
static String |
BASIC_AUTH_TYPES |
static String |
DEFAULT_WHITELIST |
static String |
GUEST_AUTH_TYPES |
Constructor and Description |
---|
SecurityPolicyConfigurator(ServiceManager services,
org.osgi.service.cm.ConfigurationAdmin configAdmin) |
Modifier and Type | Method and Description |
---|---|
void |
configureRestForBasic() |
void |
configureRestForBasic(String whitelist) |
void |
configureRestForGuest() |
void |
configureRestForGuest(String whitelist) |
void |
configureWebContextPolicy(String realms,
String authTypes,
String requiredAttributes,
String whitelist) |
static String |
createWhitelist(String whitelist) |
void |
waitForBasicAuthReady(String url) |
void |
waitForGuestAuthReady(String url) |
public static final String BASIC_AUTH_TYPES
public static final String GUEST_AUTH_TYPES
public static final String DEFAULT_WHITELIST
public SecurityPolicyConfigurator(ServiceManager services, org.osgi.service.cm.ConfigurationAdmin configAdmin)
public void configureRestForGuest(String whitelist) throws Exception
Exception
public void configureRestForBasic(String whitelist) throws Exception
Exception
public void waitForBasicAuthReady(String url)
public void waitForGuestAuthReady(String url)
This work is licensed under a Creative Commons Attribution 4.0 International License.