AccessControlType must be considered by the AccessControlAspect
which TokenExtractionMode to be used to get the tokensAccessControlType is declared with the AccessControl AnnotationSecurityContextProviderAccessControl
PUBLIC : no control should be done
ANONYMOUS : the only secretKey will be checked
PRIVATE : both secretKey and token will be checkedTokenEncoder that uses an AesJsonObjectEncoderTokenEncoder that uses an ObjectEncoderSecurityContextProvider based on the use of :
a SecurityContextHolder which is based on ThreadLocal
a TokenEncoder
a TokenVerifier
a SecurityCredentialsExtractor
a SecurityCredentialsValidatorAccessControl
HEADER : Token are passed through header (default mode)
COOKIE : Token are given by cookies (useful for images to be displayed in html)TokenExtractorFactoryTokenExtractionModeCopyright © 2020. All rights reserved.