org.apache.karaf.jaas.modules
Enum RolePolicy
java.lang.Object
java.lang.Enum<RolePolicy>
org.apache.karaf.jaas.modules.RolePolicy
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<RolePolicy>
public enum RolePolicy
- extends java.lang.Enum<RolePolicy>
- Author:
- iocanel
Method Summary |
static RolePolicy |
getPolicy(java.lang.String code)
|
java.lang.String |
getValue()
|
abstract void |
handleRoles(javax.security.auth.Subject subject,
java.util.Set<java.security.Principal> principals,
java.lang.String discriminator)
|
static RolePolicy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static RolePolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
PREFIXED_ROLES
public static final RolePolicy PREFIXED_ROLES
GROUP_ROLES
public static final RolePolicy GROUP_ROLES
values
public static RolePolicy[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (RolePolicy c : RolePolicy.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static RolePolicy valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null
getValue
public java.lang.String getValue()
getPolicy
public static RolePolicy getPolicy(java.lang.String code)
handleRoles
public abstract void handleRoles(javax.security.auth.Subject subject,
java.util.Set<java.security.Principal> principals,
java.lang.String discriminator)
Copyright © 2007-2011 Apache Software Foundation. All Rights Reserved.