VideoOS.Platform.SDK.OAuth.MipTokenCache Class Reference

Class for holding and keeping access token for the IDP server alive. More...

Inheritance diagram for VideoOS.Platform.SDK.OAuth.MipTokenCache:

Public Member Functions

void Dispose ()
 Dispose internal resources.
 
string GetClaimValue (string key)
 Gets the claim corresponding to the given key.
 
bool IsTokenExpired ()
 Tells whether the token has expired.
 
 MipTokenCache (Uri address)
 Mip token cache handles caching and prefetch of token for default Windows user.
 
 MipTokenCache (Uri address, NetworkCredential networkCredential, bool isBasicUser)
 Mip token cache handles caching and prefetch of token for Windows and Basic user.
 
 MipTokenCache (Uri address, string clientId, string scope, string secret)
 Mip token cache handles caching and prefetch of token from authorization server.
 

Protected Member Functions

virtual void Dispose (bool disposing)
 Dispose internal resources.
 

Properties

string Token [get]
 Gets the current token.
 

Detailed Description

Class for holding and keeping access token for the IDP server alive.

Constructor & Destructor Documentation

◆ MipTokenCache() [1/3]

VideoOS.Platform.SDK.OAuth.MipTokenCache.MipTokenCache ( Uri address)
inline

Mip token cache handles caching and prefetch of token for default Windows user.

Parameters
addressAddress of the identity server

◆ MipTokenCache() [2/3]

VideoOS.Platform.SDK.OAuth.MipTokenCache.MipTokenCache ( Uri address,
NetworkCredential networkCredential,
bool isBasicUser )
inline

Mip token cache handles caching and prefetch of token for Windows and Basic user.

Parameters
addressAddress of the identity server
networkCredential
isBasicUser

◆ MipTokenCache() [3/3]

VideoOS.Platform.SDK.OAuth.MipTokenCache.MipTokenCache ( Uri address,
string clientId,
string scope,
string secret )
inline

Mip token cache handles caching and prefetch of token from authorization server.

Parameters
addressAddress of the identity server
clientIdThe client id used to identify against the identity server
scopeThe scope of the service which we do request against
secretThe secret shared between client and server used to authenticate against identity server.

Member Function Documentation

◆ Dispose() [1/2]

void VideoOS.Platform.SDK.OAuth.MipTokenCache.Dispose ( )
inline

Dispose internal resources.

◆ Dispose() [2/2]

virtual void VideoOS.Platform.SDK.OAuth.MipTokenCache.Dispose ( bool disposing)
inlineprotectedvirtual

Dispose internal resources.

◆ GetClaimValue()

string VideoOS.Platform.SDK.OAuth.MipTokenCache.GetClaimValue ( string key)
inline

Gets the claim corresponding to the given key.

Parameters
key
Returns

◆ IsTokenExpired()

bool VideoOS.Platform.SDK.OAuth.MipTokenCache.IsTokenExpired ( )
inline

Tells whether the token has expired.

Returns

Property Documentation

◆ Token

string VideoOS.Platform.SDK.OAuth.MipTokenCache.Token
get

Gets the current token.