Interface AuthenticatedPrincipal
-
- All Known Subinterfaces:
OAuth2AuthenticatedPrincipal
,OAuth2User
,OidcUser
,Saml2AuthenticatedPrincipal
- All Known Implementing Classes:
DefaultOAuth2AuthenticatedPrincipal
,DefaultOAuth2User
,DefaultOidcUser
,DefaultSaml2AuthenticatedPrincipal
,OAuth2IntrospectionAuthenticatedPrincipal
public interface AuthenticatedPrincipal
Representation of an authenticatedPrincipal
once anAuthentication
request has been successfully authenticated by theAuthenticationManager.authenticate(Authentication)
method. Implementors typically provide their own representation of aPrincipal
, which usually contains information describing thePrincipal
entity, such as, first/middle/last name, address, email, phone, id, etc. This interface allows implementors to expose specific attributes of their custom representation ofPrincipal
in a generic way.- Since:
- 5.0
- See Also:
Authentication.getPrincipal()
,UserDetails
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getName()
Returns the name of the authenticatedPrincipal
.
-