[jboss-cvs] JBossAS SVN: r79159 - in projects/security/security-spi/trunk/spi/src/main/org/jboss/security: annotation and 1 other directory.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Oct 6 14:21:52 EDT 2008
Author: sguilhen at redhat.com
Date: 2008-10-06 14:21:52 -0400 (Mon, 06 Oct 2008)
New Revision: 79159
Added:
projects/security/security-spi/trunk/spi/src/main/org/jboss/security/annotation/
projects/security/security-spi/trunk/spi/src/main/org/jboss/security/annotation/SecurityDomain.java
Log:
SECURITY-277: Created org.jboss.security.annotation.SecurityDomain to replace the current SecurityDomain annotations.
Added: projects/security/security-spi/trunk/spi/src/main/org/jboss/security/annotation/SecurityDomain.java
===================================================================
--- projects/security/security-spi/trunk/spi/src/main/org/jboss/security/annotation/SecurityDomain.java (rev 0)
+++ projects/security/security-spi/trunk/spi/src/main/org/jboss/security/annotation/SecurityDomain.java 2008-10-06 18:21:52 UTC (rev 79159)
@@ -0,0 +1,43 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, 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.security.annotation;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+/**
+ * <p>
+ * Annotation for specifying the JBoss security domain for EJBs.
+ * </p>
+ *
+ * @author <a href="mailto:sguilhen at redhat.com">Stefan Guilhen</a>
+ */
+ at Target(ElementType.TYPE)
+ at Retention(RetentionPolicy.RUNTIME)
+public @interface SecurityDomain
+{
+ String value();
+
+ String unauthenticatedPrincipal() default "";
+}
More information about the jboss-cvs-commits
mailing list