All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.seedstack.oauth.AccessTokenValidator Maven / Gradle / Ivy

The newest version!
/*
 * Copyright © 2013-2021, The SeedStack authors 
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */
package org.seedstack.oauth;

/**
 * Implement this interface to provide a custom validator for OAuth access token. This is only required when NOT using
 * OpenId Connect.
 */
public interface AccessTokenValidator {
    /**
     * This method is called by the security subsystem to validate an opaque access token.
     *
     * @param accessToken the string representation of the token.
     * @throws TokenValidationException if the token is invalid.
     */
    void validate(String accessToken) throws TokenValidationException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy