Gets the Scope for the STS. For more information see Building an STS.
Пространство имен: Microsoft.IdentityModel.SecurityTokenService
Сборка: Microsoft.IdentityModel (в microsoft.identitymodel.dll)
Использование
Visual Basic |
---|
Dim principal As IClaimsPrincipal Dim request As RequestSecurityToken Dim returnValue As Scope returnValue = Me.GetScope(principal, request) |
Синтаксис
Visual Basic |
---|
Protected MustOverride Function GetScope ( _ principal As IClaimsPrincipal, _ request As RequestSecurityToken _ ) As Scope |
C# |
---|
protected abstract Scope GetScope ( IClaimsPrincipal principal, RequestSecurityToken request ) |
C++ |
---|
protected: virtual Scope^ GetScope ( IClaimsPrincipal^ principal, RequestSecurityToken^ request ) abstract |
J# |
---|
protected abstract Scope GetScope ( IClaimsPrincipal principal, RequestSecurityToken request ) |
JScript |
---|
protected abstract function GetScope ( principal : IClaimsPrincipal, request : RequestSecurityToken ) : Scope |
Параметры
- principal
-
The Microsoft.IdentityModel.Claims.IClaimsPrincipal of the client making the request.
- request
-
The incoming request.
Возвращаемое значение
Returns Scope.Примечания
EncryptingCredentials determines whether or not tokens are encrypted. TokenEncryptionRequired and SymmetricKeyEncryptionRequired also default to true to prevent the STS from issuing insecure tokens.
Безопасность потоков
Любые открытые статические члены
(Shared в Visual Basic) этого типа являются
поточно-ориентированными.Любые члены экземпляров не являются
гарантированно поточно-ориентированными.