import { Metadata } from './metadata'; /** * JWT claims that were part of the bearer token with this request. * * @public */ export declare class JwtClaims { /** * The metadata backing this JWT claims object. */ readonly metadata: Metadata; /** * This exposes JWT claims that were extracted from the bearer token. * * @param metadata - The metadata that the JWT claims come from */ constructor(metadata: Metadata); /** * Get the issuer, that is, the iss claim, as described in RFC 7519 section 4.1.1. * * @returns the issuer, if present. * @see {@link https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.1 |RFC 7519 section 4.1.1} */ get issuer(): string | undefined; /** * Get the subject, that is, the sub claim, as described in RFC 7519 section 4.1.2. * * @returns the subject, if present. * @see {@link https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.2 |RFC 7519 section 4.1.2} */ get subject(): string | undefined; /** * Get the audience, that is, the aud claim, as described in RFC 7519 section 4.1.3. * * @returns the audience, if present. * @see {@link https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.3 |RFC 7519 section 4.1.3} */ get audience(): string | undefined; /** * Get the expiration time, that is, the exp claim, as described in RFC 7519 section 4.1.4. * * @returns the expiration time, if present. * @see {@link https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.4 |RFC 7519 section 4.1.4} */ get expirationTime(): Date | undefined; /** * Get the not before, that is, the nbf claim, as described in RFC 7519 section 4.1.5. * * @returns the not before, if present. * @see {@link https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.5 |RFC 7519 section 4.1.5} */ get notBefore(): Date | undefined; /** * Get the issued at, that is, the iat claim, as described in RFC 7519 section 4.1.6. * * @returns the issued at, if present. * @see {@link https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.6 |RFC 7519 section 4.1.6} */ get issuedAt(): Date | undefined; /** * Get the JWT ID, that is, the jti claim, as described in RFC 7519 section 4.1.7. * * @returns the JWT ID, if present. * @see {@link https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.7 |RFC 7519 section 4.1.7} */ get jwtId(): string | undefined; /** * Get the string claim with the given name. * * @param name - The name of the claim */ getString(name: string): string | undefined; /** * Get the number claim with the given name. * * @param name - The name of the claim */ getNumber(name: string): number | undefined; /** * Get the numeric date claim with the given name. * * Numeric dates are expressed as a number of seconds since epoch, as described in RFC 7519 section 2. * * @param name - The name of the claim * @see {@link https://datatracker.ietf.org/doc/html/rfc7519#section-2 |RFC 7519 section 2} */ getNumericDate(name: string): Date | undefined; /** * Get the boolean claim with the given name. * * @param name - The name of the claim */ getBoolean(name: string): boolean | undefined; /** * Get the object claim with the given name. * * @param name - The name of the claim */ getObject(name: string): any | undefined; /** * Get the string array claim with the given name. * * @param name - The name of the claim */ getStringArray(name: string): string[] | undefined; /** * Get the number array claim with the given name. * * @param name - The name of the claim */ getNumberArray(name: string): number[] | undefined; /** * Get the boolean array claim with the given name. * * @param name - The name of the claim */ getBooleanArray(name: string): boolean[] | undefined; /** * Get the object array claim with the given name. * * @param name - The name of the claim */ getObjectArray(name: string): any[] | undefined; /** * Get the numeric date array claim with the given name. * * Numeric dates are expressed as a number of seconds since epoch, as described in RFC 7519 section 2. * * @param name - The name of the claim * @see {@link https://datatracker.ietf.org/doc/html/rfc7519#section-2 |RFC 7519 section 2} */ getNumericDateArray(name: string): Date[] | undefined; private getArray; }