| Modifier and Type | Field and Description |
|---|---|
| private static final Logger | LOGGER
The logger. |
| private final HttpServletRequest | request
The request. |
| Access | Constructor and Description |
|---|---|
| public | AuthorizationHeader(final HttpServletRequest
the http servlet request httpServletRequest)Instantiates a new authorization header. |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public String | Returns: AuthenticationScheme as SecurityPackage e.g. Negotiate, NTLM, Bearer.Returns a supported security package string. |
| public String | |
| public byte[] | |
| public boolean | Returns: True if header contains 'BEARER' header.Is Bearer Authorization Header will return true if 'BEARER' exists. |
| public boolean | |
| public boolean | Returns: True if request is an NTLM POST, PUT, or DELETE with an Authorization header and no data.When using NTLM authentication and the browser is making a POST request, it preemptively sends a Type 2 authentication message (without the POSTed data). |
| public boolean | |
| public boolean | Returns: true, if is SP nego message that contains NegTokenInitChecks if is SP nego message. |
| public String |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER The logger. | |
| request | back to summary |
|---|---|
| private final HttpServletRequest request The request. | |
| AuthorizationHeader | back to summary |
|---|---|
| public AuthorizationHeader(final HttpServletRequest httpServletRequest) Instantiates a new authorization header.
| |
| getHeader | back to summary |
|---|---|
| public String getHeader() Gets the header.
| |
| getSecurityPackage | back to summary |
|---|---|
| public String getSecurityPackage() Returns a supported security package string. Authorization: NTLM the_token Authorization: Negotiate the_token Authorization: Bearer the_token
| |
| getToken | back to summary |
|---|---|
| public String getToken() Gets the token.
| |
| getTokenBytes | back to summary |
|---|---|
| public byte[] getTokenBytes() Gets the token bytes.
| |
| isBearerAuthorizationHeader | back to summary |
|---|---|
| public boolean isBearerAuthorizationHeader() Is Bearer Authorization Header will return true if 'BEARER' exists.
| |
| isNtlmType1Message | back to summary |
|---|---|
| public boolean isNtlmType1Message() Checks if is ntlm type1 message.
| |
| isNtlmType1PostAuthorizationHeader | back to summary |
|---|---|
| public boolean isNtlmType1PostAuthorizationHeader() When using NTLM authentication and the browser is making a POST request, it preemptively sends a Type 2 authentication message (without the POSTed data). The server responds with a 401, and the browser sends a Type 3 request with the POSTed data. This is to avoid the situation where user's credentials might be potentially invalid, and all this data is being POSTed across the wire.
| |
| isNull | back to summary |
|---|---|
| public boolean isNull() Checks if is null.
| |
| isSPNegTokenInitMessage | back to summary |
|---|---|
| public boolean isSPNegTokenInitMessage() Checks if is SP nego message.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |