Package hudson.security
Class PAMSecurityRealm
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<SecurityRealm>
-
- hudson.security.SecurityRealm
-
- hudson.security.AbstractPasswordBasedSecurityRealm
-
- hudson.security.PAMSecurityRealm
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<SecurityRealm>
public class PAMSecurityRealm extends AbstractPasswordBasedSecurityRealm
SecurityRealm
that uses Unix PAM authentication.- Since:
- 1.282
- Author:
- Kohsuke Kawaguchi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PAMSecurityRealm.DescriptorImpl
-
Nested classes/interfaces inherited from class hudson.security.SecurityRealm
SecurityRealm.SecurityComponents
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
Fields Modifier and Type Field Description String
serviceName
-
Fields inherited from class hudson.security.SecurityRealm
AUTHENTICATED_AUTHORITY, AUTHENTICATED_AUTHORITY2, LIST, NO_AUTHENTICATION
-
-
Constructor Summary
Constructors Constructor Description PAMSecurityRealm(String serviceName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected UserDetails
authenticate(String username, String password)
IdStrategy
getGroupIdStrategy()
IdStrategy
getUserIdStrategy()
static PAMSecurityRealm.DescriptorImpl
install()
GroupDetails
loadGroupByGroupname(String groupName)
UserDetails
loadUserByUsername(String username)
-
Methods inherited from class hudson.security.AbstractPasswordBasedSecurityRealm
authenticate2, createSecurityComponents, loadGroupByGroupname2, loadUserByUsername2
-
Methods inherited from class hudson.security.SecurityRealm
all, allowsSignup, canLogOut, commenceSignup, commonFilters, createCliAuthenticator, createFilter, doCaptcha, doLogout, getAuthenticationGatewayUrl, getCaptchaSupport, getCaptchaSupportDescriptors, getDescriptor, getFrom, getLoginUrl, getPostLogOutUrl, getPostLogOutUrl2, getSecurityComponents, loadGroupByGroupname, setCaptchaSupport, validateCaptcha
-
-
-
-
Field Detail
-
serviceName
public final String serviceName
-
-
Constructor Detail
-
PAMSecurityRealm
@DataBoundConstructor public PAMSecurityRealm(String serviceName)
-
-
Method Detail
-
authenticate
protected UserDetails authenticate(String username, String password) throws AuthenticationException
- Overrides:
authenticate
in classAbstractPasswordBasedSecurityRealm
- Throws:
AuthenticationException
-
loadUserByUsername
public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException, DataAccessException
- Overrides:
loadUserByUsername
in classAbstractPasswordBasedSecurityRealm
- Throws:
UsernameNotFoundException
DataAccessException
-
loadGroupByGroupname
public GroupDetails loadGroupByGroupname(String groupName) throws UsernameNotFoundException, DataAccessException
- Overrides:
loadGroupByGroupname
in classAbstractPasswordBasedSecurityRealm
- Throws:
UsernameNotFoundException
DataAccessException
-
getUserIdStrategy
public IdStrategy getUserIdStrategy()
- Overrides:
getUserIdStrategy
in classSecurityRealm
- Since:
- 1.2
-
getGroupIdStrategy
public IdStrategy getGroupIdStrategy()
- Overrides:
getGroupIdStrategy
in classSecurityRealm
- Since:
- 1.2
-
install
@Extension public static PAMSecurityRealm.DescriptorImpl install()
-
-