angular-oauth2-oidc-codeflow-pkce
Version:
[](https://travis-ci.org/bechhansen/angular-oauth2-oidc)
23 lines (22 loc) • 775 B
TypeScript
import { AbstractValidationHandler, ValidationParams } from './validation-handler';
/**
* Validates the signature of an id_token against one
* of the keys of an JSON Web Key Set (jwks).
*
* This jwks can be provided by the discovery document.
*/
export declare class JwksValidationHandler extends AbstractValidationHandler {
/**
* Allowed algorithms
*/
allowedAlgorithms: string[];
/**
* Time period in seconds the timestamp in the signature can
* differ from the current time.
*/
gracePeriodInSec: number;
validateSignature(params: ValidationParams, retry?: boolean): Promise<any>;
private alg2kty(alg);
calcHash(valueToHash: string, algorithm: string): string;
toByteArrayAsString(hexString: string): string;
}