Author: jim.ma
Date: 2014-02-23 22:34:56 -0500 (Sun, 23 Feb 2014)
New Revision: 18409
Added:
spi/trunk/src/main/java/org/jboss/wsf/spi/security/JASPIAuthenticationProvider.java
Modified:
spi/trunk/src/main/java/org/jboss/wsf/spi/deployer/Deployer.java
Log:
[JBWS-3767]:Add apis for jaspi soap profile
Modified: spi/trunk/src/main/java/org/jboss/wsf/spi/deployer/Deployer.java
===================================================================
--- spi/trunk/src/main/java/org/jboss/wsf/spi/deployer/Deployer.java 2014-02-22 01:49:07
UTC (rev 18408)
+++ spi/trunk/src/main/java/org/jboss/wsf/spi/deployer/Deployer.java 2014-02-24 03:34:56
UTC (rev 18409)
@@ -51,6 +51,11 @@
*/
void addSecurityDomain(String name, Map<String,String> authenticationOptions)
throws Exception;
+
+ public void addJaspiSecurityDomain(String name, String loginModuleStackName,
Map<String, String> loginModuleOptions,
+ String authModuleName, Map<String, String> authModuleOptions) throws
Exception;
+
+
/**
* Removes a security domain
*
Added:
spi/trunk/src/main/java/org/jboss/wsf/spi/security/JASPIAuthenticationProvider.java
===================================================================
--- spi/trunk/src/main/java/org/jboss/wsf/spi/security/JASPIAuthenticationProvider.java
(rev 0)
+++
spi/trunk/src/main/java/org/jboss/wsf/spi/security/JASPIAuthenticationProvider.java 2014-02-24
03:34:56 UTC (rev 18409)
@@ -0,0 +1,40 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2014, 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.Map;
+
+import org.jboss.wsf.spi.deployment.Deployment;
+import org.jboss.wsf.spi.deployment.Endpoint;
+import org.jboss.wsf.spi.metadata.webservices.JBossWebservicesMetaData;
+
+/**
+ * Interface to enable jaspi authentication on server/client side
+ * @author <a href="mailto:ema@redhat.com">Jim Ma</a>
+ */
+public interface JASPIAuthenticationProvider
+{
+ boolean enableClientAuthentication(Object target, Map<String, String>
properties);
+ boolean enableServerAuthentication(Deployment dep, JBossWebservicesMetaData wsmd);
+ public boolean enableServerAuthentication(Object target, Endpoint endpoint);
+
+}
Property changes on:
spi/trunk/src/main/java/org/jboss/wsf/spi/security/JASPIAuthenticationProvider.java
___________________________________________________________________
Added: svn:keywords
+ Rev Date
Added: svn:eol-style
+ native