Top Description Constructors Methods
org.apache.tomcat.websocket

public Class AuthenticatorFactory

extends Object
Class Inheritance
Imports
java.util.ServiceLoader

Utility method to return the appropriate authenticator according to the scheme that the server uses.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static Authenticator

Returns:

the authenticator
getAuthenticator
(String
The scheme used
authScheme
)

Return a new authenticator instance.

private static Authenticator
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

AuthenticatorFactoryback to summary
public AuthenticatorFactory()

Method Detail

getAuthenticatorback to summary
public static Authenticator getAuthenticator(String authScheme)

Return a new authenticator instance.

Parameters
authScheme:String

The scheme used

Returns:Authenticator

the authenticator

loadAuthenticatorsback to summary
private static Authenticator loadAuthenticators(String authScheme)