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

de.cidaas.oauth.interceptor.CBBearerBodyTokenExtractor Maven / Gradle / Ivy

There is a newer version: 1.0.4
Show newest version
package de.cidaas.oauth.interceptor;

import javax.servlet.http.HttpServletRequest;

import org.apache.oltu.oauth2.rs.extractor.BearerBodyTokenExtractor;

/**
 * The Class CBBearerBodyTokenExtractor.
 *
 * @author michael
 */
class CBBearerBodyTokenExtractor extends BearerBodyTokenExtractor {

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.apache.oltu.oauth2.rs.extractor.BearerBodyTokenExtractor#
	 * getAccessToken (javax.servlet.http.HttpServletRequest)
	 */
	@Override
	public String getAccessToken(HttpServletRequest request) {
		String token = request.getParameter(Constants.get_tokenKey());
		if (token == null) {
			token = super.getAccessToken(request);
		}
		return token;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy