summaryrefslogtreecommitdiffstats
path: root/branches/sca-java-1.x/modules/host-http/src/main/java/org/apache/tuscany/sca/host/http/SecurityContext.java
diff options
context:
space:
mode:
authorlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2009-02-26 04:41:26 +0000
committerlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2009-02-26 04:41:26 +0000
commit750e2e19dddb236c49d458ff27c2ab50b1848a63 (patch)
tree95acb6f1b3b9d9e0b38c1dbd96227c70a039fd6f /branches/sca-java-1.x/modules/host-http/src/main/java/org/apache/tuscany/sca/host/http/SecurityContext.java
parentccdb9264ce71a776d4bb1cbf66a4e3f5012b48fd (diff)
Adding support for enabling and configuring authentication for embedded http server using policy
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@748014 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r--branches/sca-java-1.x/modules/host-http/src/main/java/org/apache/tuscany/sca/host/http/SecurityContext.java17
1 files changed, 17 insertions, 0 deletions
diff --git a/branches/sca-java-1.x/modules/host-http/src/main/java/org/apache/tuscany/sca/host/http/SecurityContext.java b/branches/sca-java-1.x/modules/host-http/src/main/java/org/apache/tuscany/sca/host/http/SecurityContext.java
index 05140d6e29..f290bb3e59 100644
--- a/branches/sca-java-1.x/modules/host-http/src/main/java/org/apache/tuscany/sca/host/http/SecurityContext.java
+++ b/branches/sca-java-1.x/modules/host-http/src/main/java/org/apache/tuscany/sca/host/http/SecurityContext.java
@@ -19,6 +19,8 @@
package org.apache.tuscany.sca.host.http;
+import java.util.ArrayList;
+import java.util.List;
import java.util.Properties;
/**
@@ -29,6 +31,9 @@ public class SecurityContext {
private boolean isSSLEnabled = false;
private Properties sslProperties;
+ private boolean isAuthenticationEnabled = false;
+ private List<UserContext> users = new ArrayList<UserContext>();
+
public boolean isSSLEnabled() {
return isSSLEnabled;
}
@@ -44,4 +49,16 @@ public class SecurityContext {
public void setSSLProperties(Properties sslProperties) {
this.sslProperties = sslProperties;
}
+
+ public boolean isAuthenticationEnabled() {
+ return this.isAuthenticationEnabled;
+ }
+
+ public void setAuthenticationEnabled(boolean value) {
+ this.isAuthenticationEnabled = value;
+ }
+
+ public List<UserContext> getUsers() {
+ return this.users;
+ }
}