Interface AuthenticatedPrincipal
-
- All Known Subinterfaces:
OAuth2AuthenticatedPrincipal,OAuth2User,OidcUser,Saml2AuthenticatedPrincipal
- All Known Implementing Classes:
DefaultOAuth2AuthenticatedPrincipal,DefaultOAuth2User,DefaultOidcUser,DefaultSaml2AuthenticatedPrincipal,OAuth2IntrospectionAuthenticatedPrincipal
public interface AuthenticatedPrincipalRepresentation of an authenticatedPrincipalonce anAuthenticationrequest has been successfully authenticated by theAuthenticationManager.authenticate(Authentication)method. Implementors typically provide their own representation of aPrincipal, which usually contains information describing thePrincipalentity, such as, first/middle/last name, address, email, phone, id, etc. This interface allows implementors to expose specific attributes of their custom representation ofPrincipalin 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.StringgetName()Returns the name of the authenticatedPrincipal.
-