Package org.jenkinsci.plugins
Class KeycloakUserDetails
java.lang.Object
org.acegisecurity.userdetails.User
org.jenkinsci.plugins.KeycloakUserDetails
- All Implemented Interfaces:
Serializable
,UserDetails
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public class KeycloakUserDetails
extends User
The Class KeycloakUserDetails.
- Author:
- Wadeck Follonier
- See Also:
-
Constructor Summary
ConstructorDescriptionKeycloakUserDetails
(String username, GrantedAuthority[] authorities) Instantiates a new keycloak user details. -
Method Summary
Methods inherited from class org.acegisecurity.userdetails.User
equals, getAuthorities, getPassword, getUsername, hashCode, isAccountNonExpired, isAccountNonLocked, isCredentialsNonExpired, isEnabled, setAuthorities, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.acegisecurity.userdetails.UserDetails
toSpring
-
Constructor Details
-
KeycloakUserDetails
public KeycloakUserDetails(String username, GrantedAuthority[] authorities) throws IllegalArgumentException Instantiates a new keycloak user details.- Parameters:
username
- the usernameauthorities
- the authorities- Throws:
IllegalArgumentException
- the illegal argument exception
-