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

com.authlete.jaxrs.spi.TokenRequestHandlerSpiAdapter Maven / Gradle / Ivy

There is a newer version: 2.82
Show newest version
/*
 * Copyright (C) 2016-2022 Authlete, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
 * either express or implied. See the License for the specific
 * language governing permissions and limitations under the
 * License.
 */
package com.authlete.jaxrs.spi;


import javax.ws.rs.core.Response;
import com.authlete.common.dto.Property;
import com.authlete.common.dto.TokenResponse;


/**
 * Empty implementation of {@link TokenRequestHandlerSpi} interface.
 *
 * 

* If you don't support Resource Owner Password Credentials Grant, you don't have to * override {@link #authenticateUser(String, String)} method. *

* * @author Takahiko Kawasaki */ public class TokenRequestHandlerSpiAdapter implements TokenRequestHandlerSpi { @Override public String authenticateUser(String username, String password) { return null; } @Override public Property[] getProperties() { return null; } @Override public Response tokenExchange(TokenResponse tokenResponse) { return null; } @Override public Response jwtBearer(TokenResponse tokenResponse) { return null; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy