Author: asoldano
Date: 2013-09-26 14:54:10 -0400 (Thu, 26 Sep 2013)
New Revision: 17953
Added:
spi/trunk/src/main/java/org/jboss/wsf/spi/security/EJBMethodSecurityAttribute.java
spi/trunk/src/main/java/org/jboss/wsf/spi/security/EJBMethodSecurityAttributeProvider.java
Modified:
spi/trunk/src/main/java/org/jboss/wsf/spi/invocation/integration/ServiceEndpointContainer.java
Log:
[JBWS-3378] Adding spi elements for method ejb3 ws endpoint method level authorization in
JAXWS handlers
Modified:
spi/trunk/src/main/java/org/jboss/wsf/spi/invocation/integration/ServiceEndpointContainer.java
===================================================================
---
spi/trunk/src/main/java/org/jboss/wsf/spi/invocation/integration/ServiceEndpointContainer.java 2013-09-26
18:51:39 UTC (rev 17952)
+++
spi/trunk/src/main/java/org/jboss/wsf/spi/invocation/integration/ServiceEndpointContainer.java 2013-09-26
18:54:10 UTC (rev 17953)
@@ -40,7 +40,7 @@
* The actual web service implementation hosted by this container.
* @return
*/
- Class getServiceImplementationClass();
+ Class<?> getServiceImplementationClass();
/**
* Invokes a particular endpoint opertation.
Added: spi/trunk/src/main/java/org/jboss/wsf/spi/security/EJBMethodSecurityAttribute.java
===================================================================
--- spi/trunk/src/main/java/org/jboss/wsf/spi/security/EJBMethodSecurityAttribute.java
(rev 0)
+++
spi/trunk/src/main/java/org/jboss/wsf/spi/security/EJBMethodSecurityAttribute.java 2013-09-26
18:54:10 UTC (rev 17953)
@@ -0,0 +1,40 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2013, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.wsf.spi.security;
+
+import java.util.Set;
+
+
+/**
+ * Container independent EJB3 method security metadata
+ *
+ * @author alessio.soldano(a)jboss.com
+ * @since 25-Sep-2013
+ */
+public interface EJBMethodSecurityAttribute
+{
+ boolean isPermitAll();
+
+ boolean isDenyAll();
+
+ Set<String> getRolesAllowed();
+}
Property changes on:
spi/trunk/src/main/java/org/jboss/wsf/spi/security/EJBMethodSecurityAttribute.java
___________________________________________________________________
Added: svn:keywords
+ Rev Date
Added: svn:eol-style
+ native
Added:
spi/trunk/src/main/java/org/jboss/wsf/spi/security/EJBMethodSecurityAttributeProvider.java
===================================================================
---
spi/trunk/src/main/java/org/jboss/wsf/spi/security/EJBMethodSecurityAttributeProvider.java
(rev 0)
+++
spi/trunk/src/main/java/org/jboss/wsf/spi/security/EJBMethodSecurityAttributeProvider.java 2013-09-26
18:54:10 UTC (rev 17953)
@@ -0,0 +1,36 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2013, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.wsf.spi.security;
+
+import java.lang.reflect.Method;
+
+
+/**
+ * Container independent provider of EJB3 method security metadata
+ *
+ * @author alessio.soldano(a)jboss.com
+ * @since 25-Sep-2013
+ */
+public interface EJBMethodSecurityAttributeProvider
+{
+ EJBMethodSecurityAttribute getSecurityAttributes(final Method viewMethod);
+}
Property changes on:
spi/trunk/src/main/java/org/jboss/wsf/spi/security/EJBMethodSecurityAttributeProvider.java
___________________________________________________________________
Added: svn:keywords
+ Rev Date
Added: svn:eol-style
+ native