UNPKG

@microsoft/useragent-sdk

Version:

SDK for building decentralized identity wallets and enterprise agents.

25 lines (24 loc) 816 B
import { ICryptoToken } from '../ICryptoToken'; import { TSMap } from 'typescript-map'; import IPayloadProtectionOptions from '../IPayloadProtectionOptions'; import { IPayloadProtection } from '../IPayloadProtection'; /** * Class to model JOSE tokens */ export default class JoseToken extends TSMap<string, any> implements ICryptoToken { private payloadProtection; private payloadProtectionProtocolOptions; constructor(payloadProtectionProtocolOptions: IPayloadProtectionOptions, payloadProtection?: IPayloadProtection, inputMap?: any[][]); /** * get the format of the crypto token */ tokenFormat(): string; /** * Serialize a a @interface ICryptoToken */ serialize(): string; /** * Convert token to json */ toJson(): any; }