Author: alessio.soldano(a)jboss.com
Date: 2010-12-14 12:14:28 -0500 (Tue, 14 Dec 2010)
New Revision: 13490
Added:
spi/branches/jbossws-spi-1.1.2/src/main/java/org/jboss/wsf/spi/security/
spi/branches/jbossws-spi-1.1.2/src/main/java/org/jboss/wsf/spi/security/JAASSecurityDomainAdaptor.java
spi/branches/jbossws-spi-1.1.2/src/main/java/org/jboss/wsf/spi/security/JAASSecurityDomainAdaptorResolver.java
Log:
[JBPAPP-5589] Adding JAASSecurityDomainAdaptor stuff to spi to mask JAAS Security Domain
coming from ASIL
Added:
spi/branches/jbossws-spi-1.1.2/src/main/java/org/jboss/wsf/spi/security/JAASSecurityDomainAdaptor.java
===================================================================
---
spi/branches/jbossws-spi-1.1.2/src/main/java/org/jboss/wsf/spi/security/JAASSecurityDomainAdaptor.java
(rev 0)
+++
spi/branches/jbossws-spi-1.1.2/src/main/java/org/jboss/wsf/spi/security/JAASSecurityDomainAdaptor.java 2010-12-14
17:14:28 UTC (rev 13490)
@@ -0,0 +1,43 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, 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.security.Key;
+import java.security.KeyStore;
+import java.util.Properties;
+
+/**
+ * A container independent jaas security domain adaptor
+ *
+ * @author alessio.soldano(a)jboss.com
+ * @since 14-Dec-2010
+ */
+public interface JAASSecurityDomainAdaptor
+{
+ KeyStore getKeyStore();
+
+ KeyStore getTrustStore();
+
+ Properties getAdditionalOptions();
+
+ Key getKey(String alias, String serviceAuthToken) throws Exception;
+}
Added:
spi/branches/jbossws-spi-1.1.2/src/main/java/org/jboss/wsf/spi/security/JAASSecurityDomainAdaptorResolver.java
===================================================================
---
spi/branches/jbossws-spi-1.1.2/src/main/java/org/jboss/wsf/spi/security/JAASSecurityDomainAdaptorResolver.java
(rev 0)
+++
spi/branches/jbossws-spi-1.1.2/src/main/java/org/jboss/wsf/spi/security/JAASSecurityDomainAdaptorResolver.java 2010-12-14
17:14:28 UTC (rev 13490)
@@ -0,0 +1,34 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, 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;
+
+
+/**
+ * Lookup JAASSecurityAdaptor from given JNDI location
+ *
+ * @author alessio.soldano(a)jboss.com
+ * @since 14-Dec-2010
+ */
+public interface JAASSecurityDomainAdaptorResolver
+{
+ JAASSecurityDomainAdaptor lookup(String jndi) throws Exception;
+}