T - Credentials of TokenV - Credentials of Application keypublic class PlainAppKeySecurityContextProvider<T,V> extends Object implements SecurityContextProvider
SecurityContextHolder as for
credentials of token
the main difference between this class and
CryptedAppKeySecurityContextProvider is that the applicationkey is
considered here as plain text not token encrypting data by providing an
implemntation of ApplicationCredentialsRetriever you are free to
handle this key as you want| Constructor and Description |
|---|
PlainAppKeySecurityContextProvider(SecurityCredentialsEncoder<T> userCredentialsEncoder,
SecurityCredentialsValidator<T> userCredentialsValidator,
ApplicationCredentialsRetriever<V> applicationCredentialsRetriever) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearSecurityContext() |
void |
provideApplicationSecurityContext(String secretKey) |
void |
provideUserSecurityContext(String token) |
public PlainAppKeySecurityContextProvider(SecurityCredentialsEncoder<T> userCredentialsEncoder, SecurityCredentialsValidator<T> userCredentialsValidator, ApplicationCredentialsRetriever<V> applicationCredentialsRetriever)
public void provideUserSecurityContext(String token)
provideUserSecurityContext in interface SecurityContextProviderpublic void provideApplicationSecurityContext(String secretKey)
provideApplicationSecurityContext in interface SecurityContextProviderpublic void clearSecurityContext()
clearSecurityContext in interface SecurityContextProviderCopyright © 2017. All rights reserved.