1 sharedlibrarycoreinterfaces ITokenAuthentication
RaidMax edited this page 2023-05-20 22:09:21 -05:00

ITokenAuthentication Public interface

Diagram

  flowchart LR
  classDef interfaceStyle stroke-dasharray: 5 5;
  classDef abstractStyle stroke-width:4px
  subgraph SharedLibraryCore.Interfaces
  SharedLibraryCore.Interfaces.ITokenAuthentication[[ITokenAuthentication]]
  class SharedLibraryCore.Interfaces.ITokenAuthentication interfaceStyle;
  end

Members

Methods

Public methods

Returns Name
bool AuthorizeToken(ITokenIdentifier authInfo)
authorizes given token
TokenState GenerateNextToken(ITokenIdentifier authInfo)
generates and returns a token for the given network id

Details

Methods

GenerateNextToken

Source code

public TokenState GenerateNextToken(ITokenIdentifier authInfo)
Arguments
Type Name Description
ITokenIdentifier authInfo auth information for next token generation
Summary

generates and returns a token for the given network id

Returns

4 character string token

AuthorizeToken

Source code

public bool AuthorizeToken(ITokenIdentifier authInfo)
Arguments
Type Name Description
ITokenIdentifier authInfo auth information
Summary

authorizes given token

Returns

true if token authorized successfully, false otherwise

Generated with ModularDoc