[jboss-cvs] JBossAS SVN: r66939 - in projects/security/security-spi/trunk/authorization/src/main/org/jboss/security: config and 1 other directory.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Fri Nov 9 15:22:33 EST 2007
Author: anil.saldhana at jboss.com
Date: 2007-11-09 15:22:33 -0500 (Fri, 09 Nov 2007)
New Revision: 66939
Added:
projects/security/security-spi/trunk/authorization/src/main/org/jboss/security/config/
projects/security/security-spi/trunk/authorization/src/main/org/jboss/security/config/ControlFlag.java
Log:
ControlFlag move to SPI
Added: projects/security/security-spi/trunk/authorization/src/main/org/jboss/security/config/ControlFlag.java
===================================================================
--- projects/security/security-spi/trunk/authorization/src/main/org/jboss/security/config/ControlFlag.java (rev 0)
+++ projects/security/security-spi/trunk/authorization/src/main/org/jboss/security/config/ControlFlag.java 2007-11-09 20:22:33 UTC (rev 66939)
@@ -0,0 +1,53 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2007, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt 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.config;
+
+//$Id$
+
+/**
+ * Control Flag for module entries
+ * @author Anil.Saldhana at redhat.com
+ * @since Aug 2, 2007
+ * @version $Revision$
+ */
+public class ControlFlag
+{
+ private String flag;
+ public static final ControlFlag REQUIRED = new ControlFlag("REQUIRED");
+ public static final ControlFlag REQUISITE = new ControlFlag("REQUISITE");
+ public static final ControlFlag SUFFICIENT = new ControlFlag("SUFFICIENT");
+ public static final ControlFlag OPTIONAL = new ControlFlag("OPTIONAL");
+
+ public ControlFlag(String flag)
+ {
+ this.flag = flag;
+ }
+
+ /**
+ * Returns the string represented
+ * "required", "requisite" etc
+ */
+ public String toString()
+ {
+ return flag;
+ }
+}
More information about the jboss-cvs-commits
mailing list