public class CrowdSecurityRealm
extends hudson.security.AbstractPasswordBasedSecurityRealm
| Modifier and Type | Class and Description |
|---|---|
static class |
CrowdSecurityRealm.DescriptorImpl
Descriptor for
CrowdSecurityRealm. |
| Modifier and Type | Field and Description |
|---|---|
String |
applicationName
Contains the application name to access Crowd.
|
String |
group
Contains the Crowd group to which a user must belong to.
|
boolean |
nestedGroups
Specifies whether nested groups can be used.
|
String |
password
Contains the application password to access Crowd.
|
String |
url
Contains the Crowd server URL.
|
| Constructor and Description |
|---|
CrowdSecurityRealm(String url,
String applicationName,
String password,
String group,
boolean nestedGroups,
int sessionValidationInterval)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.security.userdetails.UserDetails |
authenticate(String pUsername,
String pPassword) |
javax.servlet.Filter |
createFilter(javax.servlet.FilterConfig filterConfig) |
hudson.security.SecurityRealm.SecurityComponents |
createSecurityComponents() |
void |
doLogout(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp) |
hudson.security.GroupDetails |
loadGroupByGroupname(String groupname) |
org.springframework.security.userdetails.UserDetails |
loadUserByUsername(String username) |
createCliAuthenticator, doAuthenticateall, allowsSignup, canLogOut, commenceSignup, doCaptcha, findBean, getAuthenticationGatewayUrl, getCaptchaSupport, getCaptchaSupportDescriptors, getCommonFilters, getDescriptor, getLoginUrl, getPostLogOutUrl, getSecurityComponents, setCaptchaSupport, validateCaptchapublic final String url
public final String applicationName
public final String password
public final String group
public final boolean nestedGroups
@DataBoundConstructor public CrowdSecurityRealm(String url, String applicationName, String password, String group, boolean nestedGroups, int sessionValidationInterval)
url - The URL for Crowd.applicationName - The application name.password - The application password.group - The group to which users must belong to. If this parameter is
not specified, a users group membership will not be checked.nestedGroups - true when nested groups may be used.
false else.sessionValidationInterval - The number of minutes to cache authentication validation in
the session. If this value is set to 0, each HTTP
request will be authenticated with the Crowd server.public hudson.security.SecurityRealm.SecurityComponents createSecurityComponents()
createSecurityComponents in class hudson.security.AbstractPasswordBasedSecurityRealmSecurityRealm.createSecurityComponents()public void doLogout(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException,
javax.servlet.ServletException
doLogout in class hudson.security.SecurityRealmIOExceptionjavax.servlet.ServletExceptionSecurityRealm.doLogout(org.kohsuke.stapler.StaplerRequest,
org.kohsuke.stapler.StaplerResponse)public javax.servlet.Filter createFilter(javax.servlet.FilterConfig filterConfig)
throws javax.servlet.ServletException
createFilter in class hudson.security.SecurityRealmjavax.servlet.ServletExceptionSecurityRealm.createFilter(javax.servlet.FilterConfig)public org.springframework.security.userdetails.UserDetails loadUserByUsername(String username) throws org.springframework.security.userdetails.UsernameNotFoundException, org.springframework.dao.DataAccessException
loadUserByUsername in interface org.springframework.security.userdetails.UserDetailsServiceloadUserByUsername in class hudson.security.AbstractPasswordBasedSecurityRealmorg.springframework.security.userdetails.UsernameNotFoundExceptionorg.springframework.dao.DataAccessExceptionAbstractPasswordBasedSecurityRealm.loadUserByUsername(java.lang.String)public hudson.security.GroupDetails loadGroupByGroupname(String groupname) throws org.springframework.security.userdetails.UsernameNotFoundException, org.springframework.dao.DataAccessException
loadGroupByGroupname in class hudson.security.AbstractPasswordBasedSecurityRealmorg.springframework.security.userdetails.UsernameNotFoundExceptionorg.springframework.dao.DataAccessExceptionSecurityRealm.loadGroupByGroupname(java.lang.String)protected org.springframework.security.userdetails.UserDetails authenticate(String pUsername, String pPassword) throws org.springframework.security.AuthenticationException
authenticate in class hudson.security.AbstractPasswordBasedSecurityRealmorg.springframework.security.AuthenticationExceptionAbstractPasswordBasedSecurityRealm.authenticate(java.lang.String,
java.lang.String)Copyright © 2004-2014 Hudson. All Rights Reserved.