Package org.jvnet.hudson.test
Class JenkinsRule.DummySecurityRealm
java.lang.Object
hudson.model.AbstractDescribableImpl<hudson.security.SecurityRealm>
hudson.security.SecurityRealm
hudson.security.AbstractPasswordBasedSecurityRealm
org.jvnet.hudson.test.JenkinsRule.DummySecurityRealm
- All Implemented Interfaces:
hudson.ExtensionPoint,hudson.model.Describable<hudson.security.SecurityRealm>
- Enclosing class:
- JenkinsRule
public static class JenkinsRule.DummySecurityRealm
extends hudson.security.AbstractPasswordBasedSecurityRealm
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.security.SecurityRealm
hudson.security.SecurityRealm.SecurityComponentsNested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.security.SecurityRealm
AUTHENTICATED_AUTHORITY, AUTHENTICATED_AUTHORITY2, LIST, NO_AUTHENTICATION -
Method Summary
Modifier and TypeMethodDescriptionvoidAssociate some groups with a username.protected org.springframework.security.core.userdetails.UserDetailsauthenticate2(String username, String password) hudson.security.GroupDetailsloadGroupByGroupname(String groupname) org.springframework.security.core.userdetails.UserDetailsloadUserByUsername2(String username) Methods inherited from class hudson.security.AbstractPasswordBasedSecurityRealm
authenticate, authenticateByPassword, createSecurityComponents, loadGroupByGroupname2, loadUserByUsernameMethods inherited from class hudson.security.SecurityRealm
all, allowsSignup, canLogOut, commenceSignup, commonFilters, createCliAuthenticator, createFilter, createFilter, doCaptcha, doLogout, doLogout, getAuthenticationGatewayUrl, getCaptchaSupport, getCaptchaSupportDescriptors, getDescriptor, getFrom, getGroupIdStrategy, getLoginUrl, getPostLogOutUrl, getPostLogOutUrl2, getPostLogOutUrl2, getSecurityComponents, getUserIdStrategy, loadGroupByGroupname, setCaptchaSupport, validateCaptcha
-
Method Details
-
authenticate2
protected org.springframework.security.core.userdetails.UserDetails authenticate2(String username, String password) throws org.springframework.security.core.AuthenticationException - Overrides:
authenticate2in classhudson.security.AbstractPasswordBasedSecurityRealm- Throws:
org.springframework.security.core.AuthenticationException
-
loadUserByUsername2
public org.springframework.security.core.userdetails.UserDetails loadUserByUsername2(String username) throws org.springframework.security.core.userdetails.UsernameNotFoundException - Overrides:
loadUserByUsername2in classhudson.security.AbstractPasswordBasedSecurityRealm- Throws:
org.springframework.security.core.userdetails.UsernameNotFoundException
-
loadGroupByGroupname
public hudson.security.GroupDetails loadGroupByGroupname(String groupname) throws org.springframework.security.core.userdetails.UsernameNotFoundException - Overrides:
loadGroupByGroupnamein classhudson.security.AbstractPasswordBasedSecurityRealm- Throws:
org.springframework.security.core.userdetails.UsernameNotFoundException
-
addGroups
Associate some groups with a username.
-