Class KerberosSpnegoFilter.Constants
- Enclosing class:
- KerberosSpnegoFilter
This class is primarily used internally or by implementers of
custom http clients and by SpnegoFilterConfig.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringServlet init param name in web.xml spnego.allow.basic.static final StringServlet init param name in web.xml spnego.allow.delegation.static final StringServlet init param name in web.xml spnego.allow.localhost.static final StringServlet init param name in web.xml spnego.allow.unsecure.basic.static final StringHTTP Response Header WWW-Authenticate.static final StringHTTP Request Header Authorization.static final StringHTTP Response Header Basic.static final StringServlet init param name in web.xml spnego.login.client.module.static final StringServlet init param name in web.xml spnego.krb5.conf.static final StringServlet init param name in web.xml spnego.login.conf.static final StringHTTP Response Header Negotiate.static final StringServlet init param name in web.xml spnego.preauth.password.static final StringServlet init param name in web.xml spnego.preauth.username.static final StringIf server receives an NTLM token, the filter will return with a 401 and with Basic as the only option (no Negotiate) spnego.prompt.ntlm.static final StringServlet init param name in web.xml spnego.login.server.module.static final StringServlet init param name in web.xml spnego.throw.typedRuntimeException. -
Method Summary
-
Field Details
-
THROW_TYPED_RUNTIME_EXCEPTION
Servlet init param name in web.xml spnego.throw.typedRuntimeException.Set this value to
truein web.xml if the filter should throw typed runtime exception instead of ServletException.If exception have to be handled in the server application it is recommended to set this parameter to
true.- See Also:
-
ALLOW_BASIC
Servlet init param name in web.xml spnego.allow.basic.Set this value to
truein web.xml if the filter should allow Basic Authentication.It is recommended that you only allow Basic Authentication if you have clients that cannot perform Kerberos authentication. Also, you should consider requiring SSL/TLS by setting
spnego.allow.unsecure.basictofalse.- See Also:
-
ALLOW_DELEGATION
Servlet init param name in web.xml spnego.allow.delegation.Set this value to
trueif server should support credential delegation requests.Take a look at the
DelegateServletRequestfor more information about other pre-requisites.- See Also:
-
ALLOW_LOCALHOST
Servlet init param name in web.xml spnego.allow.localhost.Flag to indicate if requests coming from http://localhost or http://127.0.0.1 should not be authenticated using Kerberos.
This feature helps to obviate the requirement of creating an SPN for developer machines.
- See Also:
-
ALLOW_UNSEC_BASIC
Servlet init param name in web.xml spnego.allow.unsecure.basic.Set this value to
falsein web.xml if the filter should reject connections that do not use SSL/TLS.- See Also:
-
AUTHN_HEADER
HTTP Response Header WWW-Authenticate.The filter will respond with this header with a value of "Basic" and/or "Negotiate" (based on web.xml file).
- See Also:
-
AUTHZ_HEADER
HTTP Request Header Authorization.Clients should send this header where the value is the authentication token(s).
- See Also:
-
BASIC_HEADER
HTTP Response Header Basic.The filter will set this as the value for the "WWW-Authenticate" header if "Basic" auth is allowed (based on web.xml file).
- See Also:
-
CLIENT_MODULE
Servlet init param name in web.xml spnego.login.client.module.The LoginModule name that exists in the login.conf file.
- See Also:
-
KRB5_CONF
Servlet init param name in web.xml spnego.krb5.conf.The location of the krb5.conf file. On Windows, this file will sometimes be named krb5.ini and reside
%WINDOWS_ROOT%/krb5.inihere.By default, Java looks for the file in these locations and order:
- System Property (java.security.krb5.conf)
- %JAVA_HOME%/lib/security/krb5.conf
- %WINDOWS_ROOT%/krb5.ini
- See Also:
-
LOGIN_CONF
Servlet init param name in web.xml spnego.login.conf.The location of the login.conf file.
- See Also:
-
NEGOTIATE_HEADER
HTTP Response Header Negotiate.The filter will set this as the value for the "WWW-Authenticate" header. Note that the filter may also add another header with a value of "Basic" (if allowed by the web.xml file).
- See Also:
-
PREAUTH_PASSWORD
Servlet init param name in web.xml spnego.preauth.password.Network Domain password. For Windows, this is sometimes known as the Windows NT password.
- See Also:
-
PREAUTH_USERNAME
Servlet init param name in web.xml spnego.preauth.username.Network Domain username. For Windows, this is sometimes known as the Windows NT username.
- See Also:
-
PROMPT_NTLM
If server receives an NTLM token, the filter will return with a 401 and with Basic as the only option (no Negotiate) spnego.prompt.ntlm.- See Also:
-
SERVER_MODULE
Servlet init param name in web.xml spnego.login.server.module.The LoginModule name that exists in the login.conf file.
- See Also:
-