hudson.security
Class PAMSecurityRealm

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

public class PAMSecurityRealm
extends hudson.security.AbstractPasswordBasedSecurityRealm

SecurityRealm that uses Unix PAM authentication.

Since:
1.282
Author:
Kohsuke Kawaguchi

Nested Class Summary
static class PAMSecurityRealm.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
 String serviceName
           
 
Fields inherited from class hudson.security.SecurityRealm
AUTHENTICATED_AUTHORITY, LIST, NO_AUTHENTICATION
 
Constructor Summary
PAMSecurityRealm(String serviceName)
           
 
Method Summary
protected  org.acegisecurity.userdetails.UserDetails authenticate(String username, String password)
           
static PAMSecurityRealm.DescriptorImpl install()
           
 hudson.security.GroupDetails loadGroupByGroupname(String groupname)
           
 org.acegisecurity.userdetails.UserDetails loadUserByUsername(String username)
           
 
Methods inherited from class hudson.security.AbstractPasswordBasedSecurityRealm
createCliAuthenticator, createSecurityComponents
 
Methods inherited from class hudson.security.SecurityRealm
all, allowsSignup, canLogOut, commenceSignup, createFilter, doCaptcha, doLogout, findBean, getAuthenticationGatewayUrl, getCaptchaSupport, getCaptchaSupportDescriptors, getDescriptor, getLoginUrl, getPostLogOutUrl, getSecurityComponents, setCaptchaSupport, validateCaptcha
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serviceName

public final String serviceName
Constructor Detail

PAMSecurityRealm

@DataBoundConstructor
public PAMSecurityRealm(String serviceName)
Method Detail

authenticate

protected org.acegisecurity.userdetails.UserDetails authenticate(String username,
                                                                 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(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(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

install

@Extension
public static PAMSecurityRealm.DescriptorImpl install()


Copyright © 2004-2012. All Rights Reserved.