sharedlibrarycoreinterfaces ITokenAuthentication - RaidMax/IW4M-Admin GitHub Wiki
ITokenAuthentication Public interface
Diagram
flowchart LR
classDef interfaceStyle stroke-dasharray: 5 5;
classDef abstractStyle stroke-width:4px
subgraph SharedLibraryCore.Interfaces
SharedLibraryCore.Interfaces.ITokenAuthentication[ITokenAuthentication](/RaidMax/IW4M-Admin/wiki/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
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
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