Class KeycloakUserDetails

java.lang.Object
org.springframework.security.core.userdetails.User
org.jenkinsci.plugins.KeycloakUserDetails
All Implemented Interfaces:
Serializable, org.springframework.security.core.CredentialsContainer, org.springframework.security.core.userdetails.UserDetails

@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public class KeycloakUserDetails extends org.springframework.security.core.userdetails.User
The Class KeycloakUserDetails.
Author:
Wadeck Follonier
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.springframework.security.core.userdetails.User

    org.springframework.security.core.userdetails.User.UserBuilder
  • Constructor Summary

    Constructors
    Constructor
    Description
    KeycloakUserDetails(String username, Collection<org.springframework.security.core.GrantedAuthority> authorities)
    Instantiates a new keycloak user details.
  • Method Summary

    Methods inherited from class org.springframework.security.core.userdetails.User

    builder, equals, eraseCredentials, getAuthorities, getPassword, getUsername, hashCode, isAccountNonExpired, isAccountNonLocked, isCredentialsNonExpired, isEnabled, toString, withDefaultPasswordEncoder, withUserDetails, withUsername

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • KeycloakUserDetails

      public KeycloakUserDetails(String username, Collection<org.springframework.security.core.GrantedAuthority> authorities) throws IllegalArgumentException
      Instantiates a new keycloak user details.
      Parameters:
      username - the username
      authorities - the authorities
      Throws:
      IllegalArgumentException - the illegal argument exception