hudson.plugins.script_realm
Class ScriptSecurityRealm

java.lang.Object
  extended by hudson.security.SecurityRealm
      extended by hudson.security.AbstractPasswordBasedSecurityRealm
          extended by hudson.plugins.script_realm.ScriptSecurityRealm
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.security.SecurityRealm>, org.acegisecurity.userdetails.UserDetailsService

public class ScriptSecurityRealm
extends hudson.security.AbstractPasswordBasedSecurityRealm

Author:
Kohsuke Kawaguchi

Nested Class Summary
static class ScriptSecurityRealm.DescriptorImpl
           
 
Nested classes/interfaces inherited from class hudson.security.SecurityRealm
hudson.security.SecurityRealm.SecurityComponents
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 java.lang.String commandLine
           
 java.lang.String groupsCommandLine
           
 java.lang.String groupsDelimiter
           
 
Fields inherited from class hudson.security.SecurityRealm
AUTHENTICATED_AUTHORITY, LIST, NO_AUTHENTICATION
 
Constructor Summary
ScriptSecurityRealm(java.lang.String commandLine, java.lang.String groupsCommandLine, java.lang.String groupsDelimiter)
           
 
Method Summary
protected  org.acegisecurity.userdetails.UserDetails authenticate(java.lang.String username, java.lang.String password)
           
 boolean isWindows()
           
 hudson.security.GroupDetails loadGroupByGroupname(java.lang.String groupname)
           
protected  org.acegisecurity.GrantedAuthority[] loadGroups(java.lang.String username)
           
 org.acegisecurity.userdetails.UserDetails loadUserByUsername(java.lang.String username)
           
 
Methods inherited from class hudson.security.AbstractPasswordBasedSecurityRealm
createSecurityComponents
 
Methods inherited from class hudson.security.SecurityRealm
all, allowsSignup, canLogOut, createFilter, doCaptcha, doLogout, findBean, getAuthenticationGatewayUrl, getDescriptor, getLoginUrl, getPostLogOutUrl, getSecurityComponents, validateCaptcha
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

commandLine

public final java.lang.String commandLine

groupsCommandLine

public final java.lang.String groupsCommandLine

groupsDelimiter

public final java.lang.String groupsDelimiter
Constructor Detail

ScriptSecurityRealm

@DataBoundConstructor
public ScriptSecurityRealm(java.lang.String commandLine,
                                                java.lang.String groupsCommandLine,
                                                java.lang.String groupsDelimiter)
Method Detail

authenticate

protected org.acegisecurity.userdetails.UserDetails authenticate(java.lang.String username,
                                                                 java.lang.String password)
                                                          throws org.acegisecurity.AuthenticationException
Specified by:
authenticate in class hudson.security.AbstractPasswordBasedSecurityRealm
Throws:
org.acegisecurity.AuthenticationException

loadUserByUsername

public org.acegisecurity.userdetails.UserDetails loadUserByUsername(java.lang.String username)
                                                             throws org.acegisecurity.userdetails.UsernameNotFoundException,
                                                                    org.springframework.dao.DataAccessException
Specified by:
loadUserByUsername in interface org.acegisecurity.userdetails.UserDetailsService
Specified by:
loadUserByUsername in class hudson.security.AbstractPasswordBasedSecurityRealm
Throws:
org.acegisecurity.userdetails.UsernameNotFoundException
org.springframework.dao.DataAccessException

loadGroupByGroupname

public hudson.security.GroupDetails loadGroupByGroupname(java.lang.String groupname)
                                                  throws org.acegisecurity.userdetails.UsernameNotFoundException,
                                                         org.springframework.dao.DataAccessException
Specified by:
loadGroupByGroupname in class hudson.security.AbstractPasswordBasedSecurityRealm
Throws:
org.acegisecurity.userdetails.UsernameNotFoundException
org.springframework.dao.DataAccessException

loadGroups

protected org.acegisecurity.GrantedAuthority[] loadGroups(java.lang.String username)
                                                   throws org.acegisecurity.AuthenticationException
Throws:
org.acegisecurity.AuthenticationException

isWindows

public boolean isWindows()


Copyright © 2012. All Rights Reserved.