Class BearerTokenOAuth2Authentication
- java.lang.Object
-
- org.springframework.security.authentication.AbstractAuthenticationToken
-
- org.springframework.security.oauth2.server.resource.authentication.AbstractOAuth2TokenAuthenticationToken<org.springframework.security.oauth2.core.OAuth2AccessToken>
-
- org.springframework.security.oauth2.server.resource.authentication.BearerTokenAuthentication
-
- org.birchframework.security.oauth2.BearerTokenOAuth2Authentication
-
- All Implemented Interfaces:
Serializable,Principal,org.springframework.security.core.Authentication,org.springframework.security.core.CredentialsContainer
public class BearerTokenOAuth2Authentication extends org.springframework.security.oauth2.server.resource.authentication.BearerTokenAuthenticationImplementation ofOAuth2AuthenticatedPrincipalwhich delegates toDefaultOAuth2AuthenticatedPrincipaland also includes theBirchProperties.IdPRealmconfiguration.- Author:
- Keivan Khalichi
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BearerTokenOAuth2Authentication(org.springframework.security.oauth2.core.OAuth2AuthenticatedPrincipal thePrincipal, org.springframework.security.oauth2.core.OAuth2AccessToken theCredentials, Collection<? extends org.springframework.security.core.GrantedAuthority> theAuthorities, org.birchframework.configuration.BirchProperties.IdPRealm theIdPRealm)Constructs aBearerTokenAuthenticationwith the provided arguments
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetIdPRealmKey()StringgetIdPRealmName()-
Methods inherited from class org.springframework.security.oauth2.server.resource.authentication.BearerTokenAuthentication
getTokenAttributes
-
Methods inherited from class org.springframework.security.oauth2.server.resource.authentication.AbstractOAuth2TokenAuthenticationToken
getCredentials, getPrincipal, getToken
-
Methods inherited from class org.springframework.security.authentication.AbstractAuthenticationToken
equals, eraseCredentials, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setAuthenticated, setDetails, toString
-
-
-
-
Constructor Detail
-
BearerTokenOAuth2Authentication
public BearerTokenOAuth2Authentication(org.springframework.security.oauth2.core.OAuth2AuthenticatedPrincipal thePrincipal, org.springframework.security.oauth2.core.OAuth2AccessToken theCredentials, Collection<? extends org.springframework.security.core.GrantedAuthority> theAuthorities, org.birchframework.configuration.BirchProperties.IdPRealm theIdPRealm)Constructs aBearerTokenAuthenticationwith the provided arguments- Parameters:
thePrincipal- The OAuth 2.0 attributestheCredentials- The verified tokentheAuthorities- The theAuthorities associated with the given tokentheIdPRealm- the IdP realm properties
-
-