hudson.security
Enum SecurityMode

java.lang.Object
  extended by java.lang.Enum<SecurityMode>
      extended by hudson.security.SecurityMode
All Implemented Interfaces:
Serializable, Comparable<SecurityMode>

public enum SecurityMode
extends Enum<SecurityMode>

What security enforcement does Hudson do?

Author:
Kohsuke Kawaguchi

Enum Constant Summary
LEGACY
          Legacy "secure mode."
SECURED
          Security-enabled mode implemented through Acegi.
UNSECURED
          None.
 
Method Summary
static SecurityMode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SecurityMode[] 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
 

Enum Constant Detail

UNSECURED

public static final SecurityMode UNSECURED
None. Anyone can make any changes.


LEGACY

public static final SecurityMode LEGACY
Legacy "secure mode."

In this model, an user is either admin or not. An admin user can do anything, and non-admin user can only browse. Authentication is performed by the container.

This is the only secured mode of Hudson up to 1.160. This is maintained only for backward compatibility.


SECURED

public static final SecurityMode SECURED
Security-enabled mode implemented through Acegi.

Method Detail

values

public static SecurityMode[] 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 (SecurityMode c : SecurityMode.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static SecurityMode valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2004-2013. All Rights Reserved.