Class OpenIdConnectAccessTokenAuthentication

java.lang.Object
com.aquima.web.boot.security.openid.OpenIdConnectAccessTokenAuthentication
All Implemented Interfaces:
OpenIdConnectAuthentication, com.blueriq.component.api.security.BlueriqAuthentication, Serializable, Principal, org.springframework.security.core.Authentication
Direct Known Subclasses:
OpenIdConnectUserAuthenticationImpl

public class OpenIdConnectAccessTokenAuthentication extends Object implements OpenIdConnectAuthentication
Represents a user that was authenticated using OpenID Connect authorization code or password grants.
Since:
11.3
Author:
Timea Popa
See Also:
  • Constructor Details

  • Method Details

    • getAuthorities

      public Collection<? extends org.springframework.security.core.GrantedAuthority> getAuthorities()
      Specified by:
      getAuthorities in interface org.springframework.security.core.Authentication
    • getCredentials

      public Object getCredentials()
      Specified by:
      getCredentials in interface org.springframework.security.core.Authentication
    • getDetails

      public Object getDetails()
      Specified by:
      getDetails in interface org.springframework.security.core.Authentication
    • getPrincipal

      public Object getPrincipal()
      Specified by:
      getPrincipal in interface org.springframework.security.core.Authentication
    • isAuthenticated

      public boolean isAuthenticated()
      Specified by:
      isAuthenticated in interface org.springframework.security.core.Authentication
    • setAuthenticated

      public void setAuthenticated(boolean authenticated) throws IllegalArgumentException
      Specified by:
      setAuthenticated in interface org.springframework.security.core.Authentication
      Throws:
      IllegalArgumentException
    • getName

      public String getName()
      Specified by:
      getName in interface Principal
    • getRoles

      public List<String> getRoles()
      Specified by:
      getRoles in interface com.blueriq.component.api.security.BlueriqAuthentication
    • getTeams

      public List<String> getTeams()
      Specified by:
      getTeams in interface com.blueriq.component.api.security.BlueriqAuthentication
    • isAnonymous

      public boolean isAnonymous()
      Specified by:
      isAnonymous in interface com.blueriq.component.api.security.BlueriqAuthentication
    • isAutomatic

      public boolean isAutomatic()
      Specified by:
      isAutomatic in interface com.blueriq.component.api.security.BlueriqAuthentication
    • getClaimNames

      public Set<String> getClaimNames()
      Specified by:
      getClaimNames in interface com.blueriq.component.api.security.BlueriqAuthentication
    • getClaim

      public List<String> getClaim(String name)
      Specified by:
      getClaim in interface com.blueriq.component.api.security.BlueriqAuthentication
    • getEncodedAccessToken

      public String getEncodedAccessToken()
      Description copied from interface: OpenIdConnectAuthentication
      The access token in encoded form. This form is suitable for use in an Authorization: Bearer header.
      Specified by:
      getEncodedAccessToken in interface OpenIdConnectAuthentication
      Returns:
      the encoded access token
    • toString

      public String toString()
      Specified by:
      toString in interface Principal
      Overrides:
      toString in class Object