|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecthudson.model.AbstractDescribableImpl<hudson.security.SecurityRealm>
hudson.security.SecurityRealm
hudson.security.AbstractPasswordBasedSecurityRealm
de.theit.jenkins.crowd.CrowdSecurityRealm
public class CrowdSecurityRealm
This class provides the security realm for authenticating users against a remote Crowd server.
| Nested Class Summary | |
|---|---|
static class |
CrowdSecurityRealm.DescriptorImpl
Descriptor for CrowdSecurityRealm. |
| 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 |
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. |
| Fields inherited from class hudson.security.SecurityRealm |
|---|
AUTHENTICATED_AUTHORITY, LIST, NO_AUTHENTICATION |
| Constructor Summary | |
|---|---|
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)
Default constructor. |
|
| Method Summary | |
|---|---|
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)
|
hudson.security.GroupDetails |
loadGroupByGroupname(String groupname)
|
org.acegisecurity.userdetails.UserDetails |
loadUserByUsername(String username)
|
| Methods inherited from class hudson.security.AbstractPasswordBasedSecurityRealm |
|---|
createCliAuthenticator |
| Methods inherited from class hudson.security.SecurityRealm |
|---|
all, allowsSignup, canLogOut, commenceSignup, doCaptcha, 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 |
|---|
public 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
| Constructor Detail |
|---|
@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)
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 - cookieTokenkey - useProxy - httpProxyHost - httpProxyPort - httpProxyUsername - httpProxyPassword - socketTimeout - httpTimeout - httpMaxConnections - | Method Detail |
|---|
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.SecurityRealmIOException
javax.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.UsernameNotFoundException
org.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.UsernameNotFoundException
org.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)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||