public class CrowdSecurityRealm
extends hudson.security.AbstractPasswordBasedSecurityRealm
| Modifier and Type | Class and Description |
|---|---|
static class |
CrowdSecurityRealm.CacheConfiguration |
static class |
CrowdSecurityRealm.DescriptorImpl
Descriptor for
CrowdSecurityRealm. |
| Modifier and Type | Field and Description |
|---|---|
String |
applicationName
Contains the application name to access Crowd.
|
String |
cookieDomain
A domain to use when setting cookies, overriding the SSO Domain set in Crowd (since Crowd 2.5.2).
|
String |
cookieTokenkey
SSO cookie name for application.
|
String |
group
Contains the Crowd group to which a user must belong to.
|
String |
httpMaxConnections |
String |
httpProxyHost |
String |
httpProxyPassword |
String |
httpProxyPort |
String |
httpProxyUsername |
String |
httpTimeout |
boolean |
nestedGroups
Specifies whether nested groups can be used.
|
String |
password
Contains the application password to access Crowd.
|
int |
sessionValidationInterval
The number of minutes to cache authentication validation in the session.
|
String |
socketTimeout |
String |
url
Contains the Crowd server URL.
|
Boolean |
useProxy |
boolean |
useSSO
Don't use SSO, only REST API authentication.
|
| Constructor and Description |
|---|
CrowdSecurityRealm(String url,
String applicationName,
String password,
String group,
boolean nestedGroups,
int sessionValidationInterval,
boolean useSSO,
String cookieDomain,
String cookieTokenkey,
Boolean useProxy,
String httpProxyHost,
String httpProxyPort,
String httpProxyUsername,
String httpProxyPassword,
String socketTimeout,
String httpTimeout,
String httpMaxConnections)
Deprecated.
retained for backwards binary compatibility.
|
CrowdSecurityRealm(String url,
String applicationName,
String password,
String group,
boolean nestedGroups,
int sessionValidationInterval,
boolean useSSO,
String cookieDomain,
String cookieTokenkey,
Boolean useProxy,
String httpProxyHost,
String httpProxyPort,
String httpProxyUsername,
String httpProxyPassword,
String socketTimeout,
String httpTimeout,
String httpMaxConnections,
CrowdSecurityRealm.CacheConfiguration cache)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.acegisecurity.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) |
CrowdSecurityRealm.CacheConfiguration |
getCache() |
Integer |
getCacheSize() |
Integer |
getCacheTTL() |
hudson.security.GroupDetails |
loadGroupByGroupname(String groupname) |
org.acegisecurity.userdetails.UserDetails |
loadUserByUsername(String username) |
createCliAuthenticatorall, allowsSignup, canLogOut, commenceSignup, doCaptcha, findBean, getAuthenticationGatewayUrl, getCaptchaSupport, getCaptchaSupportDescriptors, getDescriptor, getFrom, getGroupIdStrategy, getLoginUrl, getPostLogOutUrl, getSecurityComponents, getUserIdStrategy, loadGroupByGroupname, setCaptchaSupport, validateCaptchapublic final String url
public final String applicationName
public final String password
public final String group
public final boolean nestedGroups
public final boolean useSSO
public final int sessionValidationInterval
public final String cookieDomain
public final String cookieTokenkey
public final Boolean useProxy
public final String httpProxyHost
public final String httpProxyPort
public final String httpProxyUsername
public final String httpProxyPassword
public final String socketTimeout
public final String httpTimeout
public final String httpMaxConnections
@DataBoundConstructor public CrowdSecurityRealm(String url, String applicationName, String password, String group, boolean nestedGroups, int sessionValidationInterval, boolean useSSO, String cookieDomain, String cookieTokenkey, Boolean useProxy, String httpProxyHost, String httpProxyPort, String httpProxyUsername, String httpProxyPassword, String socketTimeout, String httpTimeout, String httpMaxConnections, CrowdSecurityRealm.CacheConfiguration cache)
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.useSSO - Enable SSO authentication.cookieDomain - The cookie domaincookieTokenkey - The cookie token keyuseProxy - Specifies if a proxy should be usedhttpProxyHost - The http proxy hosthttpProxyPort - The http proxy porthttpProxyUsername - The http proxy usernamehttpProxyPassword - The http proxy passwordsocketTimeout - The socket timeouthttpTimeout - The http timeouthttpMaxConnections - The http max connectionscache - The cache configuration@Deprecated public CrowdSecurityRealm(String url, String applicationName, String password, String group, boolean nestedGroups, int sessionValidationInterval, boolean useSSO, String cookieDomain, String cookieTokenkey, Boolean useProxy, String httpProxyHost, String httpProxyPort, String httpProxyUsername, String httpProxyPassword, String socketTimeout, String httpTimeout, String httpMaxConnections)
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.useSSO - Enable SSO authentication.cookieDomain - The cookie domaincookieTokenkey - The cookie token keyuseProxy - Specifies if a proxy should be usedhttpProxyHost - The http proxy hosthttpProxyPort - The http proxy porthttpProxyUsername - The http proxy usernamehttpProxyPassword - The http proxy passwordsocketTimeout - The socket timeouthttpTimeout - The http timeouthttpMaxConnections - The http max connectionspublic CrowdSecurityRealm.CacheConfiguration getCache()
public Integer getCacheSize()
public Integer getCacheTTL()
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)
createFilter in class hudson.security.SecurityRealmSecurityRealm.createFilter(javax.servlet.FilterConfig)public org.acegisecurity.userdetails.UserDetails loadUserByUsername(String username) throws org.acegisecurity.userdetails.UsernameNotFoundException, org.springframework.dao.DataAccessException
loadUserByUsername in interface org.acegisecurity.userdetails.UserDetailsServiceloadUserByUsername in class hudson.security.AbstractPasswordBasedSecurityRealmorg.acegisecurity.userdetails.UsernameNotFoundExceptionorg.springframework.dao.DataAccessExceptionAbstractPasswordBasedSecurityRealm.loadUserByUsername(java.lang.String)public hudson.security.GroupDetails loadGroupByGroupname(String groupname) throws org.acegisecurity.userdetails.UsernameNotFoundException, org.springframework.dao.DataAccessException
loadGroupByGroupname in class hudson.security.AbstractPasswordBasedSecurityRealmorg.acegisecurity.userdetails.UsernameNotFoundExceptionorg.springframework.dao.DataAccessExceptionSecurityRealm.loadGroupByGroupname(java.lang.String)protected org.acegisecurity.userdetails.UserDetails authenticate(String pUsername, String pPassword) throws org.acegisecurity.AuthenticationException
authenticate in class hudson.security.AbstractPasswordBasedSecurityRealmorg.acegisecurity.AuthenticationExceptionAbstractPasswordBasedSecurityRealm.authenticate(java.lang.String,
java.lang.String)Copyright © 2016–2018. All rights reserved.