Adding shiro osgi aafrealm bundle 61/43761/2
authorSai Gandham <sg481n@att.com>
Thu, 19 Apr 2018 18:46:02 +0000 (18:46 +0000)
committerSai Gandham <sg481n@att.com>
Thu, 19 Apr 2018 18:51:48 +0000 (18:51 +0000)
Adding osgi aafrealm bundle. this bundle is wrapped with
cadi shiro plugin which will use aaf custom realm in
opendaylight environment

Issue-ID: AAF-250
Change-Id: Iefd68a8825ae78e035f99fd9b42b0c6e8389b11d
Signed-off-by: Sai Gandham <sg481n@att.com>
cadi/pom.xml
cadi/shiro-osgi-bundle/pom.xml [new file with mode: 0644]

index 6c2dd15..5dfdf9e 100644 (file)
                <module>aaf</module>
                <module>oauth-enduser</module>
                <module>shiro</module>
+               <module>shiro-osgi-bundle</module>
        </modules>
 
        <!-- ============================================================== -->
diff --git a/cadi/shiro-osgi-bundle/pom.xml b/cadi/shiro-osgi-bundle/pom.xml
new file mode 100644 (file)
index 0000000..95b8589
--- /dev/null
@@ -0,0 +1,98 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<!--\r
+ * ============LICENSE_START====================================================\r
+ * org.onap.aaf\r
+ * ===========================================================================\r
+ * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.\r
+ * ===========================================================================\r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ *\r
+ *      http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ * ============LICENSE_END====================================================\r
+ *\r
+-->\r
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"\r
+       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">\r
+\r
+       <parent>\r
+               <groupId>org.onap.aaf.authz</groupId>\r
+               <artifactId>cadiparent</artifactId>\r
+               <version>2.1.0-SNAPSHOT</version>\r
+               <relativePath>..</relativePath>\r
+       </parent>\r
+       <modelVersion>4.0.0</modelVersion>\r
+\r
+       <groupId>org.onap.aaf.authz</groupId>\r
+       <artifactId>aaf-shiro-aafrealm-osgi-bundle</artifactId>\r
+       <version>2.1.0-SNAPSHOT</version>\r
+       <packaging>bundle</packaging>\r
+\r
+       <properties>\r
+           <sonar.skip>true</sonar.skip>\r
+               <cadi.shiro.version>2.1.0</cadi.shiro.version>\r
+       </properties>\r
+\r
+       <build>\r
+               <plugins>\r
+                       <plugin>\r
+                               <groupId>org.apache.felix</groupId>\r
+                               <artifactId>maven-bundle-plugin</artifactId>\r
+                               <version>2.5.4</version>\r
+                               <extensions>true</extensions>\r
+                               <configuration>\r
+                                       <instructions>\r
+                                               <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>\r
+                                               <Bundle-Version>${project.version}</Bundle-Version>\r
+                                               <Export-Package>\r
+                                                       org.onap.aaf.cadi.shiro*;version=${cadi.shiro.version}\r
+                                               </Export-Package>\r
+                                               <Import-Package>\r
+                                                       javax.servlet,\r
+                                                       javax.servlet.http,\r
+                                                       org.osgi.service.blueprint;version="[1.0.0,2.0.0)",\r
+                                                       javax.net.ssl,\r
+                                                       javax.crypto,\r
+                                                       javax.crypto.spec,\r
+                                                       javax.xml.bind.annotation,\r
+                                                       javax.xml.bind,\r
+                                                       javax.xml.transform,\r
+                                                       javax.xml.datatype,\r
+                                                       javax.management,\r
+                                                       javax.security.auth,\r
+                                                       javax.security.auth.login,\r
+                                                       javax.security.auth.callback,\r
+                                                       javax.xml.soap,\r
+                                                       javax.xml.parsers,\r
+                                                       javax.xml.namespace,\r
+                                                       org.w3c.dom,\r
+                                                       org.xml.sax,\r
+                                                       javax.xml.transform.stream\r
+                                               </Import-Package>\r
+                                               <Embed-Dependency>*;scope=compile|runtime;inline=false</Embed-Dependency>\r
+                                               <!-- <Embed-Dependency>*;scope=compile|runtime;artifactId=!shiro-core;inline=false</Embed-Dependency> -->\r
+                                               <Embed-Transitive>true</Embed-Transitive>\r
+                                               <Fragment-Host>org.apache.shiro.core</Fragment-Host>\r
+                                       </instructions>\r
+                               </configuration>\r
+                       </plugin>\r
+               </plugins>\r
+\r
+\r
+       </build>\r
+\r
+       <dependencies>\r
+               <dependency>\r
+           <groupId>org.onap.aaf.authz</groupId>\r
+           <artifactId>aaf-cadi-shiro</artifactId>\r
+           <version>2.1.0</version>\r
+        </dependency>\r
+       </dependencies>\r
+</project>
\ No newline at end of file