001package com.nimbusds.openid.connect.sdk.validators;
002
003
004/**
005 * Invalid access token / code hash exception.
006 */
007public class InvalidHashException extends Exception {
008
009
010        /**
011         * Invalid access token hash exception.
012         */
013        public static final InvalidHashException INVALID_ACCESS_T0KEN_HASH_EXCEPTION
014                = new InvalidHashException("Invalid access token hash (at_hash)");
015        
016
017        /**
018         * Invalid authorisation code hash exception.
019         */
020        public static final InvalidHashException INVALID_CODE_HASH_EXCEPTION
021                = new InvalidHashException("Invalid authorization code hash (c_hash)");
022
023
024        /**
025         * Creates a new invalid hash exception.
026         *
027         * @param message The exception message.
028         */
029        private InvalidHashException(String message) {
030                super(message);
031        }
032}