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

net.sourceforge.plantuml.security.authentication.SecurityAccessInterceptor Maven / Gradle / Ivy

There is a newer version: 1.2025.0
Show newest version
// THIS FILE HAS BEEN GENERATED BY A PREPROCESSOR.
package net.sourceforge.plantuml.security.authentication;

import java.net.URLConnection;

/**
 * The security access interceptor applies the authentication information to a
 * HTTP connection. This can be a user/password combination for BasicAuth or a
 * bearer token for OAuth2.
 *
 * @author Aljoscha Rittner
 */
public interface SecurityAccessInterceptor {
    // ::remove folder when __HAXE__
    // ::remove folder when __CORE__
	/**
	 * Applies to a connection the authentication information.
	 *
	 * @param authentication the determined authentication data to authorize for the
	 *                       endpoint access
	 * @param connection     the connection to the endpoint
	 */
	void apply(SecurityAuthentication authentication, URLConnection connection);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy