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.SecurityComponents
Nested 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 TypeMethodDescriptionvoid
Associate some groups with a username.protected org.springframework.security.core.userdetails.UserDetails
authenticate2
(String username, String password) hudson.security.GroupDetails
loadGroupByGroupname
(String groupname) org.springframework.security.core.userdetails.UserDetails
loadUserByUsername2
(String username) Methods inherited from class hudson.security.AbstractPasswordBasedSecurityRealm
authenticate, authenticateByPassword, createSecurityComponents, loadGroupByGroupname2, loadUserByUsername
Methods 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:
authenticate2
in 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:
loadUserByUsername2
in 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:
loadGroupByGroupname
in classhudson.security.AbstractPasswordBasedSecurityRealm
- Throws:
org.springframework.security.core.userdetails.UsernameNotFoundException
-
addGroups
Associate some groups with a username.
-