|
||||||||||
| 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
org.jenkinsci.plugins.cas.CasSecurityRealm
public class CasSecurityRealm
Jasig CAS Single Sign-On security realm.
http://www.jasig.org/cas| Nested Class Summary | |
|---|---|
static class |
CasSecurityRealm.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 | |
|---|---|
CasProtocol |
casProtocol
|
String |
casServerUrl
|
static String |
DEFAULT_FINISH_LOGIN_URL
|
Boolean |
enableSingleSignOut
|
Boolean |
forceRenewal
|
| Fields inherited from class hudson.security.SecurityRealm |
|---|
AUTHENTICATED_AUTHORITY, LIST, NO_AUTHENTICATION |
| Constructor Summary | |
|---|---|
CasSecurityRealm(String casServerUrl,
CasProtocol casProtocol,
Boolean forceRenewal,
Boolean enableSingleSignOut)
|
|
| Method Summary | |
|---|---|
javax.servlet.Filter |
createFilter(javax.servlet.FilterConfig filterConfig)
Build the filter that will validate the service ticket returned by CAS. |
hudson.security.SecurityRealm.SecurityComponents |
createSecurityComponents()
Build a no-op authentication manager as everything is handled by a separate CAS filter chain. |
void |
doCommenceLogin(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
The login process starts from here, using the CasAuthenticationEntryPoint defined in the CasSecurityRealm.groovy application context. |
void |
doFinishLogin(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
The login process finishes here, although by the time this action is called everything has already been taken care of by filters. |
void |
doLogout(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Handles the logout processing. |
protected org.springframework.web.context.WebApplicationContext |
getApplicationContext()
Create the Spring application context that will hold CAS filters. |
String |
getFinishLoginUrl()
|
String |
getJenkinsUrl()
|
String |
getLoginUrl()
Login begins with our #doCommenceLogin(String) method. |
protected String |
getPostLogOutUrl(org.kohsuke.stapler.StaplerRequest req,
org.acegisecurity.Authentication auth)
Logout redirects to CAS before coming back to Jenkins. |
| Methods inherited from class hudson.security.SecurityRealm |
|---|
all, allowsSignup, canLogOut, commenceSignup, createCliAuthenticator, doCaptcha, findBean, getAuthenticationGatewayUrl, getCaptchaSupport, getCaptchaSupportDescriptors, getDescriptor, getSecurityComponents, loadGroupByGroupname, loadUserByUsername, setCaptchaSupport, validateCaptcha |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DEFAULT_FINISH_LOGIN_URL
public final String casServerUrl
public final CasProtocol casProtocol
public final Boolean forceRenewal
public final Boolean enableSingleSignOut
| Constructor Detail |
|---|
@DataBoundConstructor
public CasSecurityRealm(String casServerUrl,
CasProtocol casProtocol,
Boolean forceRenewal,
Boolean enableSingleSignOut)
| Method Detail |
|---|
public String getJenkinsUrl()
public String getFinishLoginUrl()
protected org.springframework.web.context.WebApplicationContext getApplicationContext()
public String getLoginUrl()
#doCommenceLogin(String) method.
getLoginUrl in class hudson.security.SecurityRealm
protected String getPostLogOutUrl(org.kohsuke.stapler.StaplerRequest req,
org.acegisecurity.Authentication auth)
getPostLogOutUrl in class hudson.security.SecurityRealmpublic hudson.security.SecurityRealm.SecurityComponents createSecurityComponents()
createSecurityComponents in class hudson.security.SecurityRealmpublic javax.servlet.Filter createFilter(javax.servlet.FilterConfig filterConfig)
createFilter in class hudson.security.SecurityRealm
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.ServletException
public void doCommenceLogin(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException,
javax.servlet.ServletException
IOException
javax.servlet.ServletException
public void doFinishLogin(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||