UNPKG

@microsoft/useragent-sdk

Version:

SDK for building decentralized identity wallets and enterprise agents.

37 lines (36 loc) 1.03 kB
import ICredential from './ICredential'; import Identifier from '../Identifier'; /** * Implementation of an OpenID Connect * self-issued id token. * @implements ICredential */ export declare class VerifiedCredential implements ICredential { /** * The identifier of the issuer of * the credential. */ readonly issuedBy: Identifier; /** * The identifier the credential was * issued to. */ readonly issuedTo: Identifier; /** * The date the credential was issued. */ readonly issuedAt: Date; /** * The date and time that the * credential expires at. */ readonly expiresAt?: Date; /** * Constructs a new instance of a verified * credential for the specified identifier. * @param issuedBy the specified identifier. * @param issuedTo the specified identifier. * @param issuedAt date and time. */ constructor(issuedBy: Identifier, issuedTo: Identifier, issuedAt: Date); }