SharedSecretTokenProvider SharedSecretTokenProvider Class

Provides methods that return name/value pairs for web token assertions, and that execute asynchronous shared secret token retrieval operations.

Syntax

Declaration

public class SharedSecretTokenProvider : TokenProviderPublic Class SharedSecretTokenProvider
    Inherits TokenProvider

Inheritance Hierarchy

Inherited Members

, , , , , , , , , ,
Clear()
Clear()
,
Clear()
Clear()
, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Methods summary

Generates a key for the token provider.

Returns a string of URL encoded name/value pairs for a simple web token assertion using the specified issuer name and issuer secret.

Returns a string of URL encoded name/value pairs for a simple web token assertion using the specified issuer name and issuer secret.

Executes the begin get token action.

Executes the begin get web token action.

Executes the end get token action.

Executes the end get web token action.

Methods

  • BuildKey(String, String)
    BuildKey(String, String)

    Generates a key for the token provider.

    protected override TokenProvider.Key BuildKey(string appliesTo, string action)Protected Overrides Function BuildKey(appliesTo As String, action As String) As TokenProvider.Key

    Parameters

    Returns

  • ComputeSimpleWebTokenString(String, Byte[])
    ComputeSimpleWebTokenString(String, Byte())

    Returns a string of URL encoded name/value pairs for a simple web token assertion using the specified issuer name and issuer secret.

    public static string ComputeSimpleWebTokenString(string issuerName, byte[] issuerSecret)Public Shared Function ComputeSimpleWebTokenString(issuerName As String, issuerSecret As Byte()) As String

    Parameters

    Returns

    • A URL encoded name/value pairs for a simple web token assertion.

  • ComputeSimpleWebTokenString(String, String)
    ComputeSimpleWebTokenString(String, String)

    Returns a string of URL encoded name/value pairs for a simple web token assertion using the specified issuer name and issuer secret.

    public static string ComputeSimpleWebTokenString(string issuerName, string issuerSecret)Public Shared Function ComputeSimpleWebTokenString(issuerName As String, issuerSecret As String) As String

    Parameters

    Returns

    • A URL encoded name/value pairs for a simple web token assertion.

  • OnBeginGetToken(String, String, TimeSpan, AsyncCallback, Object)
    OnBeginGetToken(String, String, TimeSpan, AsyncCallback, Object)

    Executes the begin get token action.

    protected override IAsyncResult OnBeginGetToken(string appliesTo, string action, TimeSpan timeout, AsyncCallback callback, object state)Protected Overrides Function OnBeginGetToken(appliesTo As String, action As String, timeout As TimeSpan, callback As AsyncCallback, state As Object) As IAsyncResult

    Parameters

    • appliesTo

      The URI which the access token applies to.

    • action

      The request action.

    • timeout

      The time span that specifies the timeout value for the message that gets the security token.

    • callback

      An AsyncCallback delegate that references the method to invoke when the operation is complete.

    • state

      A user-defined object that contains state information about the asynchronous operation.

    Returns

  • OnBeginGetWebToken(String, String, TimeSpan, AsyncCallback, Object)
    OnBeginGetWebToken(String, String, TimeSpan, AsyncCallback, Object)

    Executes the begin get web token action.

    protected override IAsyncResult OnBeginGetWebToken(string appliesTo, string action, TimeSpan timeout, AsyncCallback callback, object state)Protected Overrides Function OnBeginGetWebToken(appliesTo As String, action As String, timeout As TimeSpan, callback As AsyncCallback, state As Object) As IAsyncResult

    Parameters

    • appliesTo

      The URI which the access token applies to.

    • action

      The request action.

    • timeout

      The time span that specifies the timeout value for the message that gets the security token.

    • callback

      An AsyncCallback delegate that references the method to invoke when the operation is complete.

    • state

      A user-defined object that contains state information about the asynchronous operation.

    Returns

  • OnEndGetToken(IAsyncResult, out DateTime)
    OnEndGetToken(IAsyncResult, ByRef DateTime)

    Executes the end get token action.

    protected override SecurityToken OnEndGetToken(IAsyncResult result, out DateTime cacheUntil)Protected Overrides Function OnEndGetToken(result As IAsyncResult, ByRef cacheUntil As Date) As SecurityToken

    Parameters

    Returns

  • OnEndGetWebToken(IAsyncResult, out DateTime)
    OnEndGetWebToken(IAsyncResult, ByRef DateTime)

    Executes the end get web token action.

    protected override string OnEndGetWebToken(IAsyncResult result, out DateTime cacheUntil)Protected Overrides Function OnEndGetWebToken(result As IAsyncResult, ByRef cacheUntil As Date) As String

    Parameters

    Returns

Details

Assembly

Microsoft.ServiceBus.dll