@Component public class ServiceUserAccessAuthenticationProvider extends Object implements org.springframework.security.authentication.AuthenticationProvider
Implementation of AuthenticationProvider supporting UsernamePasswordAuthenticationToken authentication.
This authentication provider is used to verify the UsernamePasswordAuthenticationToken authentication,
that is based on the HTTP Basic Authorization header of requests sent by Service Users.
| Constructor and Description |
|---|
ServiceUserAccessAuthenticationProvider(ServiceUserProperties serviceUserProperties)
Creates a new
ServiceUserAccessAuthenticationProvider instance to verify Service User calls based on the provided properties. |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.security.core.Authentication |
authenticate(org.springframework.security.core.Authentication authentication)
Verifies a authentication against the stored service user properties.
|
boolean |
supports(Class<?> authenticationClass)
Indicates if the authentication provider supports a given authentication type.
|
@Autowired public ServiceUserAccessAuthenticationProvider(ServiceUserProperties serviceUserProperties)
ServiceUserAccessAuthenticationProvider instance to verify Service User calls based on the provided properties.serviceUserProperties - the Service User propertiespublic org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication)
throws org.springframework.security.core.AuthenticationException
authenticate in interface org.springframework.security.authentication.AuthenticationProviderauthentication - the requested authenticationnull if the provider could not verify the authenticationorg.springframework.security.core.AuthenticationException - if the authentication does not match the service user propertiespublic boolean supports(Class<?> authenticationClass)
supports in interface org.springframework.security.authentication.AuthenticationProviderauthenticationClass - the Authentication typetrue if the authentication provider can verify the typeCopyright © 2015–2016 Smartrac Technology Fletcher, Inc.. All rights reserved.