Class OAuth2ResourceOwnerPasswordAuthenticationProvider
- java.lang.Object
-
- ca.corefacility.bioinformatics.irida.oauth2.OAuth2ResourceOwnerPasswordAuthenticationProvider
-
- All Implemented Interfaces:
org.springframework.security.authentication.AuthenticationProvider
public class OAuth2ResourceOwnerPasswordAuthenticationProvider extends java.lang.Object implements org.springframework.security.authentication.AuthenticationProviderAnAuthenticationProviderimpementation for the OAuth 2.0 Resource Owner Password Credentials Grant.
-
-
Constructor Summary
Constructors Constructor Description OAuth2ResourceOwnerPasswordAuthenticationProvider(org.springframework.security.authentication.AuthenticationManager authenticationManager, org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService authorizationService, org.springframework.security.oauth2.server.authorization.token.OAuth2TokenGenerator<? extends org.springframework.security.oauth2.core.OAuth2Token> tokenGenerator)Constructs anOAuth2ResourceOwnerPasswordAuthenticationProviderusing the provided parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.security.core.Authenticationauthenticate(org.springframework.security.core.Authentication authentication)booleansupports(java.lang.Class<?> authentication)
-
-
-
Constructor Detail
-
OAuth2ResourceOwnerPasswordAuthenticationProvider
public OAuth2ResourceOwnerPasswordAuthenticationProvider(org.springframework.security.authentication.AuthenticationManager authenticationManager, org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService authorizationService, org.springframework.security.oauth2.server.authorization.token.OAuth2TokenGenerator<? extends org.springframework.security.oauth2.core.OAuth2Token> tokenGenerator)Constructs anOAuth2ResourceOwnerPasswordAuthenticationProviderusing the provided parameters.
-
-
Method Detail
-
authenticate
public org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication) throws org.springframework.security.core.AuthenticationException- Specified by:
authenticatein interfaceorg.springframework.security.authentication.AuthenticationProvider- Throws:
org.springframework.security.core.AuthenticationException
-
supports
public boolean supports(java.lang.Class<?> authentication)
- Specified by:
supportsin interfaceorg.springframework.security.authentication.AuthenticationProvider
-
-