Class PentahoSecurityContextHolderStrategy
- java.lang.Object
-
- org.pentaho.platform.engine.security.PentahoSecurityContextHolderStrategy
-
- All Implemented Interfaces:
org.springframework.security.core.context.SecurityContextHolderStrategy
public class PentahoSecurityContextHolderStrategy extends Object implements org.springframework.security.core.context.SecurityContextHolderStrategy
Used by Spring Security'sSecurityContextHolder
to govern the creation and scope of aSecurityContext
. This implementation is, with respect scope, the same as org.springframework.security.context.InheritableThreadLocalSecurityContextHolderStrategy. The SecurityContext implementations factoried by this class are of our own typePentahoSecurityContextHolderStrategy.PentahoSecurityContextImpl
which manages Authentication in it's own InheritableThreadLocal Created by nbaker on 6/6/14.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PentahoSecurityContextHolderStrategy.PentahoSecurityContextImpl
-
Constructor Summary
Constructors Constructor Description PentahoSecurityContextHolderStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearContext()
org.springframework.security.core.context.SecurityContext
createEmptyContext()
org.springframework.security.core.context.SecurityContext
getContext()
void
setContext(org.springframework.security.core.context.SecurityContext sContext)
-
-
-
Method Detail
-
getContext
public org.springframework.security.core.context.SecurityContext getContext()
- Specified by:
getContext
in interfaceorg.springframework.security.core.context.SecurityContextHolderStrategy
-
setContext
public void setContext(org.springframework.security.core.context.SecurityContext sContext)
- Specified by:
setContext
in interfaceorg.springframework.security.core.context.SecurityContextHolderStrategy
-
clearContext
public void clearContext()
- Specified by:
clearContext
in interfaceorg.springframework.security.core.context.SecurityContextHolderStrategy
-
createEmptyContext
public org.springframework.security.core.context.SecurityContext createEmptyContext()
- Specified by:
createEmptyContext
in interfaceorg.springframework.security.core.context.SecurityContextHolderStrategy
-
-