Java org.springframework.security.core.context SecurityContextHolder fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.security.core.context SecurityContextHolder fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.security.core.context SecurityContextHolder.

The text is from its open source code.

Implementation

org.springframework.security.core.context.SecurityContextHolder has the following implementations.
Click this link to see all its implementation.

Field

Method

voidclearContext()
Explicitly clears the context value from the current thread.
SecurityContextcreateEmptyContext()
Delegates the creation of a new, empty context to the configured strategy.
SecurityContextgetContext()
Obtain the current SecurityContext.
SecurityContextHolderStrategygetContextHolderStrategy()
Allows retrieval of the context strategy.
voidsetContext(SecurityContext context)
Associates a new SecurityContext with the current thread of execution.
voidsetStrategyName(String strategyName)
Changes the preferred strategy.