Class OpenIdConnectUserAuthenticationToken

  • All Implemented Interfaces:
    Serializable, Principal, org.springframework.security.core.Authentication

    public class OpenIdConnectUserAuthenticationToken
    extends Object
    implements org.springframework.security.core.Authentication
    Represents an authentication request using the OpenID Connect authorization code or password grants.
    Since:
    11.3
    Author:
    Timea Popa
    See Also:
    Serialized Form
    • Constructor Detail

      • OpenIdConnectUserAuthenticationToken

        public OpenIdConnectUserAuthenticationToken​(String accessToken,
                                                    String idToken)
    • Method Detail

      • 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
      • getIdToken

        public String getIdToken()
      • getAccessToken

        public String getAccessToken()