C# 클래스 NContext.Security.SecurityManagerBuilder

Defines a configuration class to build the application's SecurityManager.
상속: ApplicationComponentConfigurationBuilderBase
파일 보기 프로젝트 열기: PowerDMS/NContext

공개 메소드들

메소드 설명
SecurityManagerBuilder ( ApplicationConfigurationBuilder applicationConfigurationBuilder ) : System

Initializes a new instance of the SecurityManagerBuilder class.

SetCacheProviderName ( String cacheProviderName ) : SecurityManagerBuilder
SetTokenExpirationPolicy ( System.TimeSpan expiration, System.Boolean isAbsolute = false ) : SecurityManagerBuilder

Sets the security token expiration policy. When used with SecurityManager.SavePrincipal, SecurityManager will cache the IPrincipal instance that is associated with the token. Subsequent calls to SecurityManager.GetPrincipal will return the cached IPrincipal. By default security tokens / principals do not expire. By setting an expiration value, the token will expire from cache. If isAbsolute is false, then the cache entry will be evicted if it has not been accessed in the given span of time (expiration). If isAbsolute is true, then the cache entry will be evicted after a specified duration (the DateTime the cache entry was created + expiration).

보호된 메소드들

메소드 설명
Setup ( ) : void

Sets the application's security manager using the configuration created from this instance.

메소드 상세

SecurityManagerBuilder() 공개 메소드

Initializes a new instance of the SecurityManagerBuilder class.
public SecurityManagerBuilder ( ApplicationConfigurationBuilder applicationConfigurationBuilder ) : System
applicationConfigurationBuilder ApplicationConfigurationBuilder The application configuration.
리턴 System

SetCacheProviderName() 공개 메소드

public SetCacheProviderName ( String cacheProviderName ) : SecurityManagerBuilder
cacheProviderName String
리턴 SecurityManagerBuilder

SetTokenExpirationPolicy() 공개 메소드

Sets the security token expiration policy. When used with SecurityManager.SavePrincipal, SecurityManager will cache the IPrincipal instance that is associated with the token. Subsequent calls to SecurityManager.GetPrincipal will return the cached IPrincipal. By default security tokens / principals do not expire. By setting an expiration value, the token will expire from cache. If isAbsolute is false, then the cache entry will be evicted if it has not been accessed in the given span of time (expiration). If isAbsolute is true, then the cache entry will be evicted after a specified duration (the DateTime the cache entry was created + expiration).
public SetTokenExpirationPolicy ( System.TimeSpan expiration, System.Boolean isAbsolute = false ) : SecurityManagerBuilder
expiration System.TimeSpan The expiration time span.
isAbsolute System.Boolean The method which to use for evicting cached token / principals.
리턴 SecurityManagerBuilder

Setup() 보호된 메소드

Sets the application's security manager using the configuration created from this instance.
protected Setup ( ) : void
리턴 void