Skip navigation links
A B C D E F G H I J K L M N O P Q R S T U V W 

A

AbstractLogin - Class in com.hortonworks.registries.auth
Base login class that implements login based on JAAS config
AbstractLogin() - Constructor for class com.hortonworks.registries.auth.AbstractLogin
 
AbstractLogin.LoginCallbackHandler - Class in com.hortonworks.registries.auth
Callback handler for creating login context.
ALLOWED_RESOURCES - Static variable in class com.hortonworks.registries.auth.server.AuthenticationFilter
Constant for the configuration property that indicates the resources to skip this filter for e.g.
alternateAuthenticate(HttpServletRequest, HttpServletResponse) - Method in class com.hortonworks.registries.auth.server.AltKerberosAuthenticationHandler
Subclasses should implement this method to provide the custom authentication to be used for browsers.
AltKerberosAuthenticationHandler - Class in com.hortonworks.registries.auth.server
The AltKerberosAuthenticationHandler behaves exactly the same way as the KerberosAuthenticationHandler, except that it allows for an alternative form of authentication for browsers while still using Kerberos for Java access.
AltKerberosAuthenticationHandler() - Constructor for class com.hortonworks.registries.auth.server.AltKerberosAuthenticationHandler
 
ANONYMOUS - Static variable in class com.hortonworks.registries.auth.server.AuthenticationToken
Constant that identifies an anonymous request.
ANONYMOUS_ALLOWED - Static variable in class com.hortonworks.registries.auth.server.PseudoAuthenticationHandler
Constant for the configuration property that indicates if anonymous users are allowed.
AUTH_COOKIE - Static variable in class com.hortonworks.registries.auth.client.AuthenticatedURL
Name of the HTTP cookie used for the authentication token between the client and the server.
AUTH_FAILED - Static variable in class com.hortonworks.registries.auth.server.AuthenticationFilter
In case of composite filters, we will pass the state to the next filter.
AUTH_TOKEN_VALIDITY - Static variable in class com.hortonworks.registries.auth.server.AuthenticationFilter
Constant for the configuration property that indicates the validity of the generated token.
AUTH_TYPE - Static variable in class com.hortonworks.registries.auth.server.AuthenticationFilter
Constant for the property that specifies the authentication handler to use.
authenticate(URL, AuthenticatedURL.Token) - Method in interface com.hortonworks.registries.auth.client.Authenticator
Authenticates against a URL and returns a AuthenticatedURL.Token to be used by subsequent requests.
authenticate(URL, AuthenticatedURL.Token) - Method in class com.hortonworks.registries.auth.client.KerberosAuthenticator
Performs SPNEGO authentication against the specified URL.
authenticate(URL, AuthenticatedURL.Token) - Method in class com.hortonworks.registries.auth.client.PseudoAuthenticator
Performs simple authentication against the specified URL.
authenticate(HttpServletRequest, HttpServletResponse) - Method in class com.hortonworks.registries.auth.server.AltKerberosAuthenticationHandler
It enforces the Kerberos SPNEGO authentication sequence returning an AuthenticationToken only after the Kerberos SPNEGO sequence has completed successfully (in the case of Java access) and only after the custom authentication implemented by the subclass in alternateAuthenticate has completed successfully (in the case of browser access).
authenticate(HttpServletRequest, HttpServletResponse) - Method in interface com.hortonworks.registries.auth.server.AuthenticationHandler
Performs an authentication step for the given HTTP client request.
authenticate(HttpServletRequest, HttpServletResponse) - Method in class com.hortonworks.registries.auth.server.JWTAuthenticationHandler
 
authenticate(HttpServletRequest, HttpServletResponse) - Method in class com.hortonworks.registries.auth.server.KerberosAuthenticationHandler
It enforces the the Kerberos SPNEGO authentication sequence returning an AuthenticationToken only after the Kerberos SPNEGO sequence has completed successfully.
authenticate(HttpServletRequest, HttpServletResponse) - Method in class com.hortonworks.registries.auth.server.KerberosBasicAuthenticationHandler
Perform Basic authentication through Kerberos, if the authentication fails, delegates to KerberosAuthenticationHandler for SPNEGO exchange.
authenticate(HttpServletRequest, HttpServletResponse) - Method in class com.hortonworks.registries.auth.server.PseudoAuthenticationHandler
Authenticates an HTTP client request.
AuthenticatedURL - Class in com.hortonworks.registries.auth.client
The AuthenticatedURL class enables the use of the JDK URL class against HTTP endpoints protected with the AuthenticationFilter.
AuthenticatedURL() - Constructor for class com.hortonworks.registries.auth.client.AuthenticatedURL
Creates an AuthenticatedURL.
AuthenticatedURL(Authenticator) - Constructor for class com.hortonworks.registries.auth.client.AuthenticatedURL
Creates an AuthenticatedURL.
AuthenticatedURL(Authenticator, ConnectionConfigurator) - Constructor for class com.hortonworks.registries.auth.client.AuthenticatedURL
Creates an AuthenticatedURL.
AuthenticatedURL.Token - Class in com.hortonworks.registries.auth.client
Client side authentication token.
AUTHENTICATION_PROVIDER_URL - Static variable in class com.hortonworks.registries.auth.server.JWTAuthenticationHandler
 
AuthenticationException - Exception in com.hortonworks.registries.auth.client
Exception thrown when an authentication error occurs.
AuthenticationException(Throwable) - Constructor for exception com.hortonworks.registries.auth.client.AuthenticationException
AuthenticationException(String) - Constructor for exception com.hortonworks.registries.auth.client.AuthenticationException
AuthenticationException(String, Throwable) - Constructor for exception com.hortonworks.registries.auth.client.AuthenticationException
AuthenticationFilter - Class in com.hortonworks.registries.auth.server
The AuthenticationFilter enables protecting web application resources with different (pluggable) authentication mechanisms and signer secret providers.
AuthenticationFilter() - Constructor for class com.hortonworks.registries.auth.server.AuthenticationFilter
 
AuthenticationHandler - Interface in com.hortonworks.registries.auth.server
Interface for server authentication mechanisms.
AuthenticationToken - Class in com.hortonworks.registries.auth.server
The AuthenticationToken contains information about an authenticated HTTP client and doubles as the Principal to be returned by authenticated HttpServletRequests
AuthenticationToken(String, String, String) - Constructor for class com.hortonworks.registries.auth.server.AuthenticationToken
Creates an authentication token.
Authenticator - Interface in com.hortonworks.registries.auth.client
Interface for client authentication mechanisms.
AUTHORIZATION - Static variable in class com.hortonworks.registries.auth.client.KerberosAuthenticator
HTTP header used by the SPNEGO client endpoint during an authentication sequence.
AUTHORIZATION_HEADER - Static variable in class com.hortonworks.registries.auth.server.KerberosBasicAuthenticationHandler
 
AuthTerminatorFilter - Class in com.hortonworks.registries.auth.server
When joining multiple auth filters into a composite filter, the last filter needs to be the terminator filter, which terminates the chain.
AuthTerminatorFilter() - Constructor for class com.hortonworks.registries.auth.server.AuthTerminatorFilter
 
AuthToken - Class in com.hortonworks.registries.auth.util
 
AuthToken() - Constructor for class com.hortonworks.registries.auth.util.AuthToken
 
AuthToken(String, String, String) - Constructor for class com.hortonworks.registries.auth.util.AuthToken
Creates an authentication token.

B

BASIC_AUTHENTICATION - Static variable in class com.hortonworks.registries.auth.server.KerberosBasicAuthenticationHandler
 

C

CertificateUtil - Class in com.hortonworks.registries.auth.util
 
checkForIllegalArgument(String, String) - Static method in class com.hortonworks.registries.auth.util.AuthToken
Check if the provided value is invalid.
checkSignatures(String, String) - Method in class com.hortonworks.registries.auth.util.Signer
 
close() - Method in class com.hortonworks.registries.auth.KerberosLogin
 
close() - Method in interface com.hortonworks.registries.auth.Login
Closes this instance.
close() - Method in class com.hortonworks.registries.auth.NOOPLogin
 
com.hortonworks.registries.auth - package com.hortonworks.registries.auth
 
com.hortonworks.registries.auth.client - package com.hortonworks.registries.auth.client
 
com.hortonworks.registries.auth.server - package com.hortonworks.registries.auth.server
 
com.hortonworks.registries.auth.util - package com.hortonworks.registries.auth.util
 
computeSignature(byte[], String) - Method in class com.hortonworks.registries.auth.util.Signer
Returns then signature of a string.
CONFIG_PREFIX - Static variable in class com.hortonworks.registries.auth.server.AuthenticationFilter
Constant for the property that specifies the configuration prefix.
configure(Map<String, ?>, String) - Method in class com.hortonworks.registries.auth.AbstractLogin
 
configure(Map<String, ?>, String, Configuration) - Method in class com.hortonworks.registries.auth.AbstractLogin
Configures this login instance with a dynamic configuration.
configure(HttpURLConnection) - Method in interface com.hortonworks.registries.auth.client.ConnectionConfigurator
Configures the given HttpURLConnection instance.
configure(Map<String, ?>, String) - Method in class com.hortonworks.registries.auth.KerberosLogin
Method to configure this instance with specific properties
configure(Map<String, ?>, String, Configuration) - Method in class com.hortonworks.registries.auth.KerberosLogin
Method to configure this instance with specific properties
configure(Map<String, ?>, String) - Method in interface com.hortonworks.registries.auth.Login
Configures this login instance.
ConnectionConfigurator - Interface in com.hortonworks.registries.auth.client
Interface to configure HttpURLConnection created by AuthenticatedURL instances.
constructSecretProvider(ServletContext, Properties, boolean) - Static method in class com.hortonworks.registries.auth.server.AuthenticationFilter
 
COOKIE_DOMAIN - Static variable in class com.hortonworks.registries.auth.server.AuthenticationFilter
Constant for the configuration property that indicates the domain to use in the HTTP cookie.
COOKIE_PATH - Static variable in class com.hortonworks.registries.auth.server.AuthenticationFilter
Constant for the configuration property that indicates the path to use in the HTTP cookie.
createAuthCookie(HttpServletResponse, String, String, String, long, boolean) - Static method in class com.hortonworks.registries.auth.server.AuthenticationFilter
Creates the authentication HTTP cookie.

D

destroy() - Method in class com.hortonworks.registries.auth.server.AuthenticationFilter
Destroys the filter.
destroy() - Method in interface com.hortonworks.registries.auth.server.AuthenticationHandler
Destroys the authentication handler instance.
destroy() - Method in class com.hortonworks.registries.auth.server.AuthTerminatorFilter
 
destroy() - Method in class com.hortonworks.registries.auth.server.JWTAuthenticationHandler
 
destroy() - Method in class com.hortonworks.registries.auth.server.KerberosAuthenticationHandler
Releases any resources initialized by the authentication handler.
destroy() - Method in class com.hortonworks.registries.auth.server.KerberosBasicAuthenticationHandler
 
destroy() - Method in class com.hortonworks.registries.auth.server.PseudoAuthenticationHandler
Releases any resources initialized by the authentication handler.
destroy() - Method in class com.hortonworks.registries.auth.util.RolloverSignerSecretProvider
 
destroy() - Method in class com.hortonworks.registries.auth.util.SignerSecretProvider
Will be called on shutdown; subclasses should perform any cleanup here.
doAction(PrivilegedAction<T>) - Method in class com.hortonworks.registries.auth.AbstractLogin
 
doAction(PrivilegedAction<T>) - Method in class com.hortonworks.registries.auth.KerberosLogin
 
doAction(PrivilegedAction<T>) - Method in interface com.hortonworks.registries.auth.Login
Execute a privileged action which respect to the login context of this instance.
DOAS_QUERY_STRING - Static variable in class com.hortonworks.registries.auth.server.KerberosAuthenticationHandler
 
doFilter(ServletRequest, ServletResponse, FilterChain) - Method in class com.hortonworks.registries.auth.server.AuthenticationFilter
If the request has a valid authentication token it allows the request to continue to the target resource, otherwise it triggers an authentication sequence using the configured AuthenticationHandler.
doFilter(ServletRequest, ServletResponse, FilterChain) - Method in class com.hortonworks.registries.auth.server.AuthTerminatorFilter
 

E

ENABLE_TRUSTED_PROXY - Static variable in class com.hortonworks.registries.auth.server.KerberosAuthenticationHandler
Constant for the configuration property that indicates the Trusted Proxy setting.
execCommand(String...) - Static method in class com.hortonworks.registries.auth.util.Shell
Static method to execute a shell command.
execCommand(String[], long) - Static method in class com.hortonworks.registries.auth.util.Shell
Static method to execute a shell command.
execString() - Method in class com.hortonworks.registries.auth.util.Shell
Return an array containing the command name and its parameters
execString() - Method in class com.hortonworks.registries.auth.util.Shell.ShellCommandExecutor
 
execute() - Method in class com.hortonworks.registries.auth.util.Shell.ShellCommandExecutor
Execute the shell command.
exitCode() - Method in class com.hortonworks.registries.auth.util.Shell
get the exit code
ExitCodeException(int, String) - Constructor for exception com.hortonworks.registries.auth.util.Shell.ExitCodeException
 
EXPECTED_JWT_AUDIENCES - Static variable in class com.hortonworks.registries.auth.server.JWTAuthenticationHandler
 
extractToken(HttpURLConnection, AuthenticatedURL.Token) - Static method in class com.hortonworks.registries.auth.client.AuthenticatedURL
Helper method that extracts an authentication token received from a connection.

F

FileSignerSecretProvider - Class in com.hortonworks.registries.auth.util
A SignerSecretProvider that simply loads a secret from a specified file.
FileSignerSecretProvider() - Constructor for class com.hortonworks.registries.auth.util.FileSignerSecretProvider
 

G

generateNewSecret() - Method in class com.hortonworks.registries.auth.util.RandomSignerSecretProvider
 
generateNewSecret() - Method in class com.hortonworks.registries.auth.util.RolloverSignerSecretProvider
Subclasses should implement this to return a new secret.
getAcceptAnonymous() - Method in class com.hortonworks.registries.auth.server.PseudoAuthenticationHandler
Returns if the handler is configured to support anonymous users.
getAllSecrets() - Method in class com.hortonworks.registries.auth.util.FileSignerSecretProvider
 
getAllSecrets() - Method in class com.hortonworks.registries.auth.util.RolloverSignerSecretProvider
 
getAllSecrets() - Method in class com.hortonworks.registries.auth.util.SignerSecretProvider
Returns all secrets that a cookie could have been signed with and are still valid; this should include the secret returned by getCurrentSecret().
getAppConfigurationEntry(String) - Method in class com.hortonworks.registries.auth.util.JaasConfiguration
 
getAuthenticationHandler() - Method in class com.hortonworks.registries.auth.server.AuthenticationFilter
Returns the authentication handler being used.
getAuthenticator() - Method in class com.hortonworks.registries.auth.client.AuthenticatedURL
Returns the Authenticator instance used by the AuthenticatedURL.
getConfiguration() - Method in class com.hortonworks.registries.auth.server.AuthenticationFilter
Returns the configuration properties of the AuthenticationFilter without the prefix.
getConfiguration(String, FilterConfig) - Method in class com.hortonworks.registries.auth.server.AuthenticationFilter
Returns the filtered configuration (only properties starting with the specified prefix).
getCookieDomain() - Method in class com.hortonworks.registries.auth.server.AuthenticationFilter
Returns the cookie domain to use for the HTTP cookie.
getCookiePath() - Method in class com.hortonworks.registries.auth.server.AuthenticationFilter
Returns the cookie path to use for the HTTP cookie.
getCurrentSecret() - Method in class com.hortonworks.registries.auth.util.FileSignerSecretProvider
 
getCurrentSecret() - Method in class com.hortonworks.registries.auth.util.RolloverSignerSecretProvider
 
getCurrentSecret() - Method in class com.hortonworks.registries.auth.util.SignerSecretProvider
Returns the current secret to be used by the Signer for signing new cookies.
getDefaultAuthenticator() - Static method in class com.hortonworks.registries.auth.client.AuthenticatedURL
Returns the default Authenticator class to use when an AuthenticatedURL instance is created without specifying an authenticator.
getDefaultRealm() - Method in class com.hortonworks.registries.auth.util.KerberosName
Get the configured default realm.
getDefaultRealm() - Static method in class com.hortonworks.registries.auth.util.KerberosUtil
 
getDoasUser(HttpServletRequest) - Static method in class com.hortonworks.registries.auth.server.KerberosAuthenticationHandler
 
getExitCode() - Method in exception com.hortonworks.registries.auth.util.Shell.ExitCodeException
 
getExpires() - Method in class com.hortonworks.registries.auth.util.AuthToken
Returns the expiration time of the token.
getFallBackAuthenticator() - Method in class com.hortonworks.registries.auth.client.KerberosAuthenticator
If the specified URL does not support SPNEGO authentication, a fallback Authenticator will be used.
getHostName() - Method in class com.hortonworks.registries.auth.util.KerberosName
Get the second component of the name.
getJWTFromCookie(HttpServletRequest) - Method in class com.hortonworks.registries.auth.server.JWTAuthenticationHandler
Encapsulate the acquisition of the JWT token from HTTP cookies within the request.
getKeytab() - Method in class com.hortonworks.registries.auth.server.KerberosAuthenticationHandler
Returns the keytab used by the authentication handler.
getKrb5LoginModuleName() - Static method in class com.hortonworks.registries.auth.util.KerberosUtil
 
getName() - Method in class com.hortonworks.registries.auth.util.AuthToken
Returns the principal name (this method name comes from the JDK Principal interface).
getNonBrowserUserAgents(String) - Static method in class com.hortonworks.registries.auth.util.Utils
Return non browser user agents as an array from a config string
getOidInstance(String) - Static method in class com.hortonworks.registries.auth.util.KerberosUtil
 
getPrincipalNames(String, Pattern) - Static method in class com.hortonworks.registries.auth.util.KerberosUtil
Get all the unique principals from keytabfile which matches a pattern.
getPrincipals() - Method in class com.hortonworks.registries.auth.server.KerberosAuthenticationHandler
Returns the Kerberos principals used by the authentication handler.
getRealm() - Method in class com.hortonworks.registries.auth.util.KerberosName
Get the realm of the name.
getRequestURL(HttpServletRequest) - Method in class com.hortonworks.registries.auth.server.AuthenticationFilter
Returns the full URL of the request including the query string.
getRules() - Static method in class com.hortonworks.registries.auth.util.KerberosName
Get the rules.
getServiceName() - Method in class com.hortonworks.registries.auth.util.KerberosName
Get the first component of the name.
getServicePrincipal(String, String) - Static method in class com.hortonworks.registries.auth.util.KerberosUtil
Create Kerberos principal for a given service and hostname.
getShortName() - Method in class com.hortonworks.registries.auth.util.KerberosName
Get the translation of the principal name into an operating system user name.
getToken(HttpServletRequest) - Method in class com.hortonworks.registries.auth.server.AuthenticationFilter
Returns the AuthenticationToken for the request.
getType() - Method in class com.hortonworks.registries.auth.server.AltKerberosAuthenticationHandler
Returns the authentication type of the authentication handler, 'alt-kerberos'.
getType() - Method in interface com.hortonworks.registries.auth.server.AuthenticationHandler
Returns the authentication type of the authentication handler.
getType() - Method in class com.hortonworks.registries.auth.server.JWTAuthenticationHandler
 
getType() - Method in class com.hortonworks.registries.auth.server.KerberosAuthenticationHandler
Returns the authentication type of the authentication handler, 'kerberos'.
getType() - Method in class com.hortonworks.registries.auth.server.KerberosBasicAuthenticationHandler
 
getType() - Method in class com.hortonworks.registries.auth.server.PseudoAuthenticationHandler
Returns the authentication type of the authentication handler, 'simple'.
getType() - Method in class com.hortonworks.registries.auth.util.AuthToken
Returns the authentication mechanism of the token.
getUserName() - Method in class com.hortonworks.registries.auth.client.PseudoAuthenticator
Returns the current user name.
getUserName() - Method in class com.hortonworks.registries.auth.util.AuthToken
Returns the user name.
getValidity() - Method in class com.hortonworks.registries.auth.server.AuthenticationFilter
Returns the validity time of the generated tokens.

H

handle(Callback[]) - Method in class com.hortonworks.registries.auth.AbstractLogin.LoginCallbackHandler
 
hasRulesBeenSet() - Static method in class com.hortonworks.registries.auth.util.KerberosName
Indicates if the name rules have been set.

I

IBM_JAVA - Static variable in class com.hortonworks.registries.auth.PlatformName
A public static variable to indicate the current java vendor is IBM java or not.
init(Properties) - Method in class com.hortonworks.registries.auth.server.AltKerberosAuthenticationHandler
 
init(FilterConfig) - Method in class com.hortonworks.registries.auth.server.AuthenticationFilter
Initializes the authentication filter and signer secret provider.
init(Properties) - Method in interface com.hortonworks.registries.auth.server.AuthenticationHandler
Initializes the authentication handler instance.
init(FilterConfig) - Method in class com.hortonworks.registries.auth.server.AuthTerminatorFilter
 
init(Properties) - Method in class com.hortonworks.registries.auth.server.JWTAuthenticationHandler
Initializes the authentication handler instance.
init(Properties) - Method in class com.hortonworks.registries.auth.server.KerberosAuthenticationHandler
Initializes the authentication handler instance.
init(Properties) - Method in class com.hortonworks.registries.auth.server.KerberosBasicAuthenticationHandler
 
init(Properties) - Method in class com.hortonworks.registries.auth.server.PseudoAuthenticationHandler
Initializes the authentication handler instance.
init(Properties, ServletContext, long) - Method in class com.hortonworks.registries.auth.util.FileSignerSecretProvider
 
init(Properties, ServletContext, long) - Method in class com.hortonworks.registries.auth.util.RolloverSignerSecretProvider
Initialize the SignerSecretProvider.
init(Properties, ServletContext, long) - Method in class com.hortonworks.registries.auth.util.SignerSecretProvider
Initialize the SignerSecretProvider
initializeAuthHandler(String) - Method in class com.hortonworks.registries.auth.server.AuthenticationFilter
 
initializeSecretProvider(FilterConfig) - Method in class com.hortonworks.registries.auth.server.AuthenticationFilter
 
initSecrets(byte[], byte[]) - Method in class com.hortonworks.registries.auth.util.RolloverSignerSecretProvider
Initializes the secrets array.
injectToken(HttpURLConnection, AuthenticatedURL.Token) - Static method in class com.hortonworks.registries.auth.client.AuthenticatedURL
Helper method that injects an authentication token to send with a connection.
IS_COMPOSITE - Static variable in class com.hortonworks.registries.auth.server.AuthenticationFilter
If true then the filter will expect there to be multiple filters in the line.
isBlank(CharSequence) - Static method in class com.hortonworks.registries.auth.util.Utils
Checks if the given CharSequence has any blank space.
isBrowser(String[], HttpServletRequest) - Static method in class com.hortonworks.registries.auth.util.Utils
Checks if HttpServletRequest is from a browser by inspecting header named User-Agent
isCustomSignerSecretProvider() - Method in class com.hortonworks.registries.auth.server.AuthenticationFilter
Returns if a custom implementation of a SignerSecretProvider is being used.
isExpired() - Method in class com.hortonworks.registries.auth.server.AuthenticationToken
Returns true if the token has expired.
isExpired() - Method in class com.hortonworks.registries.auth.util.AuthToken
Returns true if the token has expired.
isRandomSecret() - Method in class com.hortonworks.registries.auth.server.AuthenticationFilter
Returns if a random secret is being used.
isSet() - Method in class com.hortonworks.registries.auth.client.AuthenticatedURL.Token
Returns if a token from the server has been set.

J

JAAS_CONFIG_SYSTEM_PROPERTY - Static variable in class com.hortonworks.registries.auth.AbstractLogin
 
jaasConfiguration - Variable in class com.hortonworks.registries.auth.AbstractLogin
 
JaasConfiguration - Class in com.hortonworks.registries.auth.util
Class representing the Dynamic JAAS configuration.
JaasConfiguration(String, String) - Constructor for class com.hortonworks.registries.auth.util.JaasConfiguration
 
JAVA_VENDOR_NAME - Static variable in class com.hortonworks.registries.auth.PlatformName
The java vendor name used in this platform.
JWT_COOKIE_NAME - Static variable in class com.hortonworks.registries.auth.server.JWTAuthenticationHandler
 
JWT_SSO_ENABLED - Static variable in interface com.hortonworks.registries.auth.server.AuthenticationHandler
 
JWTAuthenticationHandler - Class in com.hortonworks.registries.auth.server
The JWTAuthenticationHandler implements AuthenticationHandler to add WebSSO behavior for UIs.
JWTAuthenticationHandler() - Constructor for class com.hortonworks.registries.auth.server.JWTAuthenticationHandler
 

K

KerberosAuthenticationHandler - Class in com.hortonworks.registries.auth.server
The KerberosAuthenticationHandler implements the Kerberos SPNEGO authentication mechanism for HTTP.
KerberosAuthenticationHandler() - Constructor for class com.hortonworks.registries.auth.server.KerberosAuthenticationHandler
Creates a Kerberos SPNEGO authentication handler with the default auth-token type, kerberos.
KerberosAuthenticationHandler(String) - Constructor for class com.hortonworks.registries.auth.server.KerberosAuthenticationHandler
Creates a Kerberos SPNEGO authentication handler with a custom auth-token type.
KerberosAuthenticator - Class in com.hortonworks.registries.auth.client
The KerberosAuthenticator implements the Kerberos SPNEGO authentication sequence.
KerberosAuthenticator() - Constructor for class com.hortonworks.registries.auth.client.KerberosAuthenticator
 
KerberosBasicAuthenticationHandler - Class in com.hortonworks.registries.auth.server
The KerberosBasicAuthenticationHandler augments the Kerberos SPNEGO authentication mechanism with the Kerberos Basic Login authentication mechanism.
KerberosLogin - Class in com.hortonworks.registries.auth
This class is responsible for logging in to Kerberos and refreshing credentials for login corresponding to a login context section in jaas config
KerberosLogin() - Constructor for class com.hortonworks.registries.auth.KerberosLogin
 
KerberosLogin(long) - Constructor for class com.hortonworks.registries.auth.KerberosLogin
 
KerberosName - Class in com.hortonworks.registries.auth.util
This class implements parsing and handling of Kerberos principal names.
KerberosName(String) - Constructor for class com.hortonworks.registries.auth.util.KerberosName
Create a name from the full Kerberos principal name.
KerberosName.BadFormatString - Exception in com.hortonworks.registries.auth.util
 
KerberosName.NoMatchingRule - Exception in com.hortonworks.registries.auth.util
 
KerberosUtil - Class in com.hortonworks.registries.auth.util
 
KEYTAB - Static variable in class com.hortonworks.registries.auth.server.KerberosAuthenticationHandler
Constant for the configuration property that indicates the keytab file path.
KINIT_CMD - Static variable in class com.hortonworks.registries.auth.KerberosLogin
 

L

LOAD_BALANCER_PRINCIPAL - Static variable in class com.hortonworks.registries.auth.server.KerberosAuthenticationHandler
Constant for the configuration property that indicates the kerberos principal.
login() - Method in class com.hortonworks.registries.auth.AbstractLogin
 
login() - Method in class com.hortonworks.registries.auth.KerberosLogin
Method called once initially to login.
Login - Interface in com.hortonworks.registries.auth
Login interface for authentication.
login() - Method in interface com.hortonworks.registries.auth.Login
Performs login for each login module specified for the login context of this instance.
login(String, String) - Method in class com.hortonworks.registries.auth.server.SunJaasKerberosClient
 
LOGIN_ENABLED_CONFIG - Static variable in class com.hortonworks.registries.auth.server.KerberosBasicAuthenticationHandler
 
LoginCallbackHandler() - Constructor for class com.hortonworks.registries.auth.AbstractLogin.LoginCallbackHandler
 
loginContext - Variable in class com.hortonworks.registries.auth.AbstractLogin
 
loginContextName - Variable in class com.hortonworks.registries.auth.AbstractLogin
 

M

main(String[]) - Static method in class com.hortonworks.registries.auth.PlatformName
 
MIN_TIME_BEFORE_RELOGIN - Static variable in class com.hortonworks.registries.auth.KerberosLogin
 

N

NAME_RULES - Static variable in class com.hortonworks.registries.auth.server.KerberosAuthenticationHandler
Constant for the configuration property that indicates the Kerberos name rules for the Kerberos principals.
NEGOTIATE - Static variable in class com.hortonworks.registries.auth.client.KerberosAuthenticator
HTTP header prefix used by the SPNEGO client/server endpoints during an authentication sequence.
newThread(String, Runnable, boolean) - Static method in class com.hortonworks.registries.auth.util.Utils
Create a new thread
NON_BROWSER_USER_AGENTS - Static variable in class com.hortonworks.registries.auth.server.AltKerberosAuthenticationHandler
Constant for the configuration property that indicates which user agents are not considered browsers (comma separated)
NON_BROWSER_USER_AGENTS - Static variable in interface com.hortonworks.registries.auth.server.AuthenticationHandler
 
NON_BROWSER_USER_AGENTS_DEFAULT - Static variable in interface com.hortonworks.registries.auth.server.AuthenticationHandler
 
NOOPLogin - Class in com.hortonworks.registries.auth
 
NOOPLogin() - Constructor for class com.hortonworks.registries.auth.NOOPLogin
 

O

openConnection(URL, AuthenticatedURL.Token) - Method in class com.hortonworks.registries.auth.client.AuthenticatedURL
Returns an authenticated HttpURLConnection.
output() - Method in class com.hortonworks.registries.auth.util.Shell.ShellCommandExecutor
Get the output of the shell command.

P

parse(String) - Static method in class com.hortonworks.registries.auth.server.AuthenticationToken
Parses a string into an authentication token.
parse(String) - Static method in class com.hortonworks.registries.auth.util.AuthToken
 
parseExecResult(BufferedReader) - Method in class com.hortonworks.registries.auth.util.Shell
Parse the execution result
parseExecResult(BufferedReader) - Method in class com.hortonworks.registries.auth.util.Shell.ShellCommandExecutor
 
parseRSAPublicKey(String) - Static method in class com.hortonworks.registries.auth.util.CertificateUtil
Gets an RSAPublicKey from the provided PEM encoding.
PLATFORM_NAME - Static variable in class com.hortonworks.registries.auth.PlatformName
The complete platform 'name' to identify the platform as per the java-vm.
PlatformName - Class in com.hortonworks.registries.auth
A helper class for getting build-info of the java-vm.
PRINCIPAL - Static variable in class com.hortonworks.registries.auth.server.KerberosAuthenticationHandler
Constant for the configuration property that indicates the kerberos principal.
proceedToNextFilter(FilterChain, HttpServletRequest, HttpServletResponse) - Method in class com.hortonworks.registries.auth.server.AuthenticationFilter
Delegates call to the servlet filter chain.
process() - Method in class com.hortonworks.registries.auth.util.Shell
get the current sub-process executing the given command
PseudoAuthenticationHandler - Class in com.hortonworks.registries.auth.server
The PseudoAuthenticationHandler provides a pseudo authentication mechanism that accepts the user name specified as a query string parameter.
PseudoAuthenticationHandler() - Constructor for class com.hortonworks.registries.auth.server.PseudoAuthenticationHandler
Creates a pseudo authentication handler with the default auth-token type, simple.
PseudoAuthenticationHandler(String) - Constructor for class com.hortonworks.registries.auth.server.PseudoAuthenticationHandler
Creates a pseudo authentication handler with a custom auth-token type.
PseudoAuthenticator - Class in com.hortonworks.registries.auth.client
The PseudoAuthenticator implementation provides an authentication equivalent to Hadoop's Simple authentication, it trusts the value of the 'user.name' Java System property.
PseudoAuthenticator() - Constructor for class com.hortonworks.registries.auth.client.PseudoAuthenticator
 
PUBLIC_KEY_PEM - Static variable in class com.hortonworks.registries.auth.server.JWTAuthenticationHandler
 

Q

QUERY_STRING_DELIMITER - Static variable in class com.hortonworks.registries.auth.server.KerberosAuthenticationHandler
 

R

RandomSignerSecretProvider - Class in com.hortonworks.registries.auth.util
A SignerSecretProvider that uses a random number as its secret.
RandomSignerSecretProvider() - Constructor for class com.hortonworks.registries.auth.util.RandomSignerSecretProvider
 
RandomSignerSecretProvider(long) - Constructor for class com.hortonworks.registries.auth.util.RandomSignerSecretProvider
This constructor lets you set the seed of the Random Number Generator and is meant for testing.
respondWithUnauthorized(ServletRequest, HttpServletResponse, int, AuthenticationException) - Method in class com.hortonworks.registries.auth.server.AuthenticationFilter
 
RolloverSignerSecretProvider - Class in com.hortonworks.registries.auth.util
An abstract SignerSecretProvider that can be use used as the base for a rolling secret.
RolloverSignerSecretProvider() - Constructor for class com.hortonworks.registries.auth.util.RolloverSignerSecretProvider
 
rollSecret() - Method in class com.hortonworks.registries.auth.util.RolloverSignerSecretProvider
Rolls the secret.
run() - Method in class com.hortonworks.registries.auth.util.Shell
 

S

setConnectionConfigurator(ConnectionConfigurator) - Method in interface com.hortonworks.registries.auth.client.Authenticator
Sets a ConnectionConfigurator instance to use for configuring connections.
setConnectionConfigurator(ConnectionConfigurator) - Method in class com.hortonworks.registries.auth.client.KerberosAuthenticator
Sets a ConnectionConfigurator instance to use for configuring connections.
setConnectionConfigurator(ConnectionConfigurator) - Method in class com.hortonworks.registries.auth.client.PseudoAuthenticator
Sets a ConnectionConfigurator instance to use for configuring connections.
setDebug(boolean) - Method in class com.hortonworks.registries.auth.server.SunJaasKerberosClient
 
setDefaultAuthenticator(Class<? extends Authenticator>) - Static method in class com.hortonworks.registries.auth.client.AuthenticatedURL
Sets the default Authenticator class to use when an AuthenticatedURL instance is created without specifying an authenticator.
setExpires(long) - Method in class com.hortonworks.registries.auth.server.AuthenticationToken
Sets the expiration of the token.
setExpires(long) - Method in class com.hortonworks.registries.auth.util.AuthToken
Sets the expiration of the token.
setNonBrowserUserAgents(String) - Method in class com.hortonworks.registries.auth.server.KerberosAuthenticationHandler
 
setPublicKey(RSAPublicKey) - Method in class com.hortonworks.registries.auth.server.JWTAuthenticationHandler
Primarily for testing, this provides a way to set the publicKey for signature verification without needing to get a PEM encoded value.
setRules(String) - Static method in class com.hortonworks.registries.auth.util.KerberosName
Set the rules.
Shell - Class in com.hortonworks.registries.auth.util
A base class for running a Unix command.
Shell(long) - Constructor for class com.hortonworks.registries.auth.util.Shell
 
Shell.ExitCodeException - Exception in com.hortonworks.registries.auth.util
This is an IOException with exit code added.
Shell.ShellCommandExecutor - Class in com.hortonworks.registries.auth.util
A simple shell command executor.
ShellCommandExecutor(String[], long) - Constructor for class com.hortonworks.registries.auth.util.Shell.ShellCommandExecutor
Create a new instance of the ShellCommandExecutor to execute a command.
shouldAuthenticate(HttpServletRequest) - Method in interface com.hortonworks.registries.auth.server.AuthenticationHandler
Should the request be authenticated by the handler or not.
shouldAuthenticate(HttpServletRequest) - Method in class com.hortonworks.registries.auth.server.JWTAuthenticationHandler
 
shouldAuthenticate(HttpServletRequest) - Method in class com.hortonworks.registries.auth.server.KerberosAuthenticationHandler
 
shouldAuthenticate(HttpServletRequest) - Method in class com.hortonworks.registries.auth.server.PseudoAuthenticationHandler
 
sign(String) - Method in class com.hortonworks.registries.auth.util.Signer
Returns a signed string.
SIGNATURE_SECRET - Static variable in class com.hortonworks.registries.auth.server.AuthenticationFilter
Constant for the property that specifies the secret to use for signing the HTTP Cookies.
SIGNATURE_SECRET_FILE - Static variable in class com.hortonworks.registries.auth.server.AuthenticationFilter
 
Signer - Class in com.hortonworks.registries.auth.util
Signs strings and verifies signed strings using a SHA digest.
Signer(SignerSecretProvider) - Constructor for class com.hortonworks.registries.auth.util.Signer
Creates a Signer instance using the specified SignerSecretProvider.
SIGNER_SECRET_PROVIDER - Static variable in class com.hortonworks.registries.auth.server.AuthenticationFilter
Constant for the configuration property that indicates the name of the SignerSecretProvider class to use.
SIGNER_SECRET_PROVIDER_ATTRIBUTE - Static variable in class com.hortonworks.registries.auth.server.AuthenticationFilter
Constant for the ServletContext attribute that can be used for providing a custom implementation of the SignerSecretProvider.
SignerException - Exception in com.hortonworks.registries.auth.util
Exception thrown by Signer when a string signature is invalid.
SignerException(String) - Constructor for exception com.hortonworks.registries.auth.util.SignerException
Creates an exception instance.
SignerSecretProvider - Class in com.hortonworks.registries.auth.util
The SignerSecretProvider is an abstract way to provide a secret to be used by the Signer so that we can have different implementations that potentially do more complicated things in the backend.
SignerSecretProvider() - Constructor for class com.hortonworks.registries.auth.util.SignerSecretProvider
 
SPNEGO_ENABLED_CONFIG - Static variable in class com.hortonworks.registries.auth.server.KerberosBasicAuthenticationHandler
 
startScheduler(long, long) - Method in class com.hortonworks.registries.auth.util.RolloverSignerSecretProvider
Starts the scheduler for the rollover to run at an interval.
SunJaasKerberosClient - Class in com.hortonworks.registries.auth.server
Implementation of KerberosClient which uses the SUN JAAS login module, which is included in the SUN JRE, it will not work with an IBM JRE.
SunJaasKerberosClient() - Constructor for class com.hortonworks.registries.auth.server.SunJaasKerberosClient
 

T

TICKET_RENEW_JITTER - Static variable in class com.hortonworks.registries.auth.KerberosLogin
 
TICKET_RENEW_WINDOW_FACTOR - Static variable in class com.hortonworks.registries.auth.KerberosLogin
 
Token() - Constructor for class com.hortonworks.registries.auth.client.AuthenticatedURL.Token
Creates a token.
Token(String) - Constructor for class com.hortonworks.registries.auth.client.AuthenticatedURL.Token
Creates a token using an existing string representation of the token.
toString() - Method in class com.hortonworks.registries.auth.client.AuthenticatedURL.Token
Returns the string representation of the token.
toString() - Method in class com.hortonworks.registries.auth.util.AuthToken
Returns the string representation of the token.
toString() - Method in class com.hortonworks.registries.auth.util.KerberosName
Put the name back together from the parts.
toString() - Method in class com.hortonworks.registries.auth.util.Shell.ShellCommandExecutor
Returns the commands of this instance.
TYPE - Static variable in class com.hortonworks.registries.auth.server.AltKerberosAuthenticationHandler
Constant that identifies the authentication mechanism.
TYPE - Static variable in class com.hortonworks.registries.auth.server.JWTAuthenticationHandler
 
TYPE - Static variable in class com.hortonworks.registries.auth.server.KerberosAuthenticationHandler
Constant that identifies the authentication mechanism.
TYPE - Static variable in class com.hortonworks.registries.auth.server.KerberosBasicAuthenticationHandler
 
TYPE - Static variable in class com.hortonworks.registries.auth.server.PseudoAuthenticationHandler
Constant that identifies the authentication mechanism.

U

USER_NAME - Static variable in class com.hortonworks.registries.auth.client.PseudoAuthenticator
Name of the additional parameter that carries the 'user.name' value.
Utils - Class in com.hortonworks.registries.auth.util
 

V

validateAudiences(SignedJWT) - Method in class com.hortonworks.registries.auth.server.JWTAuthenticationHandler
Validate whether any of the accepted audience claims is present in the issued token claims list for audience.
validateExpiration(SignedJWT) - Method in class com.hortonworks.registries.auth.server.JWTAuthenticationHandler
Validate that the expiration time of the JWT token has not been violated.
validateSignature(SignedJWT) - Method in class com.hortonworks.registries.auth.server.JWTAuthenticationHandler
Verify the signature of the JWT token in this method.
validateToken(SignedJWT) - Method in class com.hortonworks.registries.auth.server.JWTAuthenticationHandler
This method provides a single method for validating the JWT for use in request processing.
verifyAndExtract(String) - Method in class com.hortonworks.registries.auth.util.Signer
Verifies a signed string and extracts the original string.

W

WWW_AUTHENTICATE - Static variable in class com.hortonworks.registries.auth.client.KerberosAuthenticator
HTTP header used by the SPNEGO server endpoint during an authentication sequence.
WWW_AUTHENTICATE - Static variable in interface com.hortonworks.registries.auth.server.AuthenticationHandler
 
A B C D E F G H I J K L M N O P Q R S T U V W 
Skip navigation links