hudson.security.nocaptcha
Class SecurityRealmNoCaptcha
java.lang.Object
hudson.security.SecurityRealm
hudson.security.HudsonPrivateSecurityRealm
hudson.security.nocaptcha.SecurityRealmNoCaptcha
- All Implemented Interfaces:
- hudson.ExtensionPoint, hudson.model.Describable<hudson.security.SecurityRealm>, hudson.model.ModelObject, hudson.security.AccessControlled
public class SecurityRealmNoCaptcha
- extends hudson.security.HudsonPrivateSecurityRealm
The only purpose of this realm is to avoid having to enter a CAPTCHA.
- Author:
- Jacob Robertson
| Nested classes/interfaces inherited from class hudson.security.HudsonPrivateSecurityRealm |
hudson.security.HudsonPrivateSecurityRealm.Details, hudson.security.HudsonPrivateSecurityRealm.HudsonUserDetailsService, hudson.security.HudsonPrivateSecurityRealm.ManageUserLinks, hudson.security.HudsonPrivateSecurityRealm.SignupInfo |
| Nested classes/interfaces inherited from class hudson.security.SecurityRealm |
hudson.security.SecurityRealm.SecurityComponents |
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Fields inherited from class hudson.security.HudsonPrivateSecurityRealm |
PASSWORD_ENCODER |
| Fields inherited from class hudson.security.SecurityRealm |
AUTHENTICATED_AUTHORITY, LIST, NO_AUTHENTICATION |
|
Method Summary |
protected hudson.model.User |
createAccount(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp,
boolean selfRegistration,
java.lang.String formView)
COPIED FROM SUPERCLASS - because it's private! |
void |
doCreateAccount(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Creates an user account. |
protected static boolean |
hasSomeUser()
COPIED FROM SUPERCLASS - because it's private!
Computes if this Hudson has some user accounts configured. |
protected void |
loginAndTakeBack(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp,
hudson.model.User u)
COPIED FROM SUPERCLASS - because it's private!
Lets the current user silently login as the given user and report back accordingly. |
protected void |
tryToMakeAdmin(hudson.model.User u)
COPIED FROM SUPERCLASS - because it's private!
Try to make this user a super-user |
| Methods inherited from class hudson.security.HudsonPrivateSecurityRealm |
allowsSignup, checkPermission, createAccount, createSecurityComponents, doCreateAccountByAdmin, doCreateFirstAccount, getACL, getAllUsers, getDisplayName, getUser, hasPermission, loadGroupByGroupname |
| Methods inherited from class hudson.security.SecurityRealm |
all, canLogOut, createFilter, doCaptcha, doLogout, findBean, getAuthenticationGatewayUrl, getDescriptor, getLoginUrl, getPostLogOutUrl, getSecurityComponents, loadUserByUsername, validateCaptcha |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SecurityRealmNoCaptcha
@DataBoundConstructor
public SecurityRealmNoCaptcha()
doCreateAccount
public void doCreateAccount(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws java.io.IOException,
javax.servlet.ServletException
- Creates an user account. Used for self-registration.
- Overrides:
doCreateAccount in class hudson.security.HudsonPrivateSecurityRealm
- Throws:
java.io.IOException
javax.servlet.ServletException
hasSomeUser
protected static boolean hasSomeUser()
- COPIED FROM SUPERCLASS - because it's private!
Computes if this Hudson has some user accounts configured.
This is used to check for the initial
tryToMakeAdmin
protected void tryToMakeAdmin(hudson.model.User u)
- COPIED FROM SUPERCLASS - because it's private!
Try to make this user a super-user
loginAndTakeBack
protected void loginAndTakeBack(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp,
hudson.model.User u)
throws javax.servlet.ServletException,
java.io.IOException
- COPIED FROM SUPERCLASS - because it's private!
Lets the current user silently login as the given user and report back accordingly.
- Throws:
javax.servlet.ServletException
java.io.IOException
createAccount
protected hudson.model.User createAccount(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp,
boolean selfRegistration,
java.lang.String formView)
throws javax.servlet.ServletException,
java.io.IOException
- COPIED FROM SUPERCLASS - because it's private!
- Returns:
- null if failed. The browser is already redirected to retry by the time this method returns.
a valid
User object if the user creation was successful.
- Throws:
javax.servlet.ServletException
java.io.IOException
Copyright © 2010. All Rights Reserved.