Class BearerTokenAuthentication
java.lang.Object
com.codename1.backend.security.AbstractAuthenticationToken
com.codename1.backend.security.oauth2.server.resource.BearerTokenAuthentication
- All Implemented Interfaces:
Authentication
Who an opaque bearer token said the request is from, as its
introspection answered.
-
Constructor Summary
ConstructorsConstructorDescriptionBearerTokenAuthentication(String token, Map<String, Object> attributes, Collection<? extends GrantedAuthority> authorities) Named after the token'ssub, or itsclient_idwhen it has none. -
Method Summary
Modifier and TypeMethodDescriptionWhat proves the principal is who it says: a password, usually, and null once it has been checked.getName()The principal's name.The identity: a username before authentication, and afterwards usually theUserDetailsit was resolved to.What introspection answered for the token.Methods inherited from class AbstractAuthenticationToken
eraseCredentials, getAuthorities, getDetails, isAuthenticated, setAuthenticated, setDetails, toString
-
Constructor Details
-
BearerTokenAuthentication
public BearerTokenAuthentication(String token, Map<String, Object> attributes, Collection<? extends GrantedAuthority> authorities) Named after the token'ssub, or itsclient_idwhen it has none.
-
-
Method Details
-
getTokenAttributes
-
getPrincipal
Description copied from interface:AuthenticationThe identity: a username before authentication, and afterwards usually theUserDetailsit was resolved to. -
getCredentials
Description copied from interface:AuthenticationWhat proves the principal is who it says: a password, usually, and null once it has been checked. -
getName
Description copied from interface:AuthenticationThe principal's name.- Specified by:
getNamein interfaceAuthentication- Overrides:
getNamein classAbstractAuthenticationToken
-