hudson.security
Class AuthorizationStrategy.Unsecured

java.lang.Object
  extended by hudson.model.AbstractDescribableImpl<AuthorizationStrategy>
      extended by hudson.security.AuthorizationStrategy
          extended by hudson.security.AuthorizationStrategy.Unsecured
All Implemented Interfaces:
ExtensionPoint, Describable<AuthorizationStrategy>, Serializable
Enclosing class:
AuthorizationStrategy

public static final class AuthorizationStrategy.Unsecured
extends AuthorizationStrategy
implements Serializable

See Also:
Serialized Form

Nested Class Summary
static class AuthorizationStrategy.Unsecured.DescriptorImpl
           
 
Nested classes/interfaces inherited from class hudson.security.AuthorizationStrategy
AuthorizationStrategy.Unsecured
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 
Fields inherited from class hudson.security.AuthorizationStrategy
LIST, UNSECURED
 
Constructor Summary
AuthorizationStrategy.Unsecured()
           
 
Method Summary
 Collection<String> getGroups()
          Returns the list of all group/role names used in this authorization strategy, and the ACL returned from the AuthorizationStrategy.getRootACL() method.
 ACL getRootACL()
          Returns the instance of ACL where all the other ACL instances for all the other model objects eventually delegate.
 
Methods inherited from class hudson.security.AuthorizationStrategy
all, getACL, getACL, getACL, getACL, getACL, getACL, getACL, getACL
 
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthorizationStrategy.Unsecured

public AuthorizationStrategy.Unsecured()
Method Detail

getRootACL

public ACL getRootACL()
Description copied from class: AuthorizationStrategy
Returns the instance of ACL where all the other ACL instances for all the other model objects eventually delegate.

IOW, this ACL will have the ultimate say on the access control.

Specified by:
getRootACL in class AuthorizationStrategy

getGroups

public Collection<String> getGroups()
Description copied from class: AuthorizationStrategy
Returns the list of all group/role names used in this authorization strategy, and the ACL returned from the AuthorizationStrategy.getRootACL() method.

This method is used by ContainerAuthentication to work around the servlet API issue that prevents us from enumerating roles that the user has.

If such enumeration is impossible, do the best to list as many as possible, then return it. In the worst case, just return an empty list. Doing so would prevent users from using role names as group names (see HUDSON-2716 for such one such report.)

Specified by:
getGroups in class AuthorizationStrategy
Returns:
never null.


Copyright © 2004-2013. All Rights Reserved.