Click or drag to resize

ISessionTokenEncodingService Interface

Service which can encode session id and refresh tokens into an opaque format suitable to be roundtripped through an untrusted context

Namespace: SanteDB.Core.Security.Services
Assembly: SanteDB.Core.Api (in SanteDB.Core.Api.dll) Version: 3.0.2081-alpha+b4ae72647f2cc271f89142f76fff26ad69e00f5a
Syntax
public interface ISessionTokenEncodingService : IServiceImplementation

The ISessionTokenEncodingService type exposes the following members.

Properties
 NameDescription
Public propertyServiceName Gets the service name
(Inherited from IServiceImplementation)
Top
Methods
 NameDescription
Public methodDecode Attempts to decode a token. Will return the decoded token or throw an exception if the encoded token is invalid.
Public methodEncode Encodes a token such that the result is an opaque value that is tamper resistant and suitable for transport through an unsecure context.
Public methodExtractSessionIdentity Extract the identifier of the session from the encoded token without performing validation
Public methodTryDecode Attempts to decode a token. Will return a decoded token in token if the result is true, null otherwise.
Top
See Also