cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b...@apache.org
Subject svn commit: r912485 - /cxf/sandbox/geronimo-jaxrs_1.0_spec/src/main/java/javax/ws/rs/core/SecurityContext.java
Date Mon, 22 Feb 2010 05:36:48 GMT
Author: bluk
Date: Mon Feb 22 05:36:48 2010
New Revision: 912485

URL: http://svn.apache.org/viewvc?rev=912485&view=rev
Log:
Add JAX-RS SecurityContext interface

Added:
    cxf/sandbox/geronimo-jaxrs_1.0_spec/src/main/java/javax/ws/rs/core/SecurityContext.java
  (with props)

Added: cxf/sandbox/geronimo-jaxrs_1.0_spec/src/main/java/javax/ws/rs/core/SecurityContext.java
URL: http://svn.apache.org/viewvc/cxf/sandbox/geronimo-jaxrs_1.0_spec/src/main/java/javax/ws/rs/core/SecurityContext.java?rev=912485&view=auto
==============================================================================
--- cxf/sandbox/geronimo-jaxrs_1.0_spec/src/main/java/javax/ws/rs/core/SecurityContext.java
(added)
+++ cxf/sandbox/geronimo-jaxrs_1.0_spec/src/main/java/javax/ws/rs/core/SecurityContext.java
Mon Feb 22 05:36:48 2010
@@ -0,0 +1,37 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+
+package javax.ws.rs.core;
+
+import java.security.Principal;
+
+public interface SecurityContext {
+    public static final java.lang.String BASIC_AUTH       = "BASIC";
+    public static final java.lang.String CLIENT_CERT_AUTH = "CLIENT_CERT";
+    public static final java.lang.String DIGEST_AUTH      = "DIGEST";
+    public static final java.lang.String FORM_AUTH        = "FORM";
+
+    public String getAuthenticationScheme();
+
+    public Principal getUserPrincipal();
+
+    public boolean isSecure();
+
+    public boolean isUserInRole(String role);
+}

Propchange: cxf/sandbox/geronimo-jaxrs_1.0_spec/src/main/java/javax/ws/rs/core/SecurityContext.java
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message