Top Description Inners Fields Constructors Methods
org.apache.tomcat.util.http.parser

public Class Authorization

extends Object
Class Inheritance
Imports
java.io.IOException, .StringReader, java.util.HashMap, .Locale, .Map

Parser for an "Authorization" header.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static enum

Field Summary

Modifier and TypeField and Description
private static final Map<String, Authorization.FieldType>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static Map<String, String>

Returns:

A map of directives and values as Strings or null if a parsing error occurs. Although the values returned are Strings they will have been validated to ensure that they conform to RFC 2617.
parseAuthorizationDigest
(StringReader
The header value to parse
input
)

Parses an HTTP Authorization header for DIGEST authentication as per RFC 2617 section 3.2.2.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

fieldTypesback to summary
private static final Map<String, Authorization.FieldType> fieldTypes

Constructor Detail

Authorizationback to summary
private Authorization()

Method Detail

parseAuthorizationDigestback to summary
public static Map<String, String> parseAuthorizationDigest(StringReader input) throws IllegalArgumentException, IOException

Parses an HTTP Authorization header for DIGEST authentication as per RFC 2617 section 3.2.2.

Parameters
input:StringReader

The header value to parse

Returns:Map<String, String>

A map of directives and values as Strings or null if a parsing error occurs. Although the values returned are Strings they will have been validated to ensure that they conform to RFC 2617.

Exceptions
IllegalArgumentException:
If the header does not conform to RFC 2617
IOException:
If an error occurs while reading the input
org.apache.tomcat.util.http.parser back to summary

private final Enum Authorization.FieldType

extends Enum<Authorization.FieldType>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final Authorization.FieldType
public static final Authorization.FieldType
public static final Authorization.FieldType
public static final Authorization.FieldType

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static Authorization.FieldType
public static Authorization.FieldType[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

LHEXback to summary
public static final Authorization.FieldType LHEX
QUOTED_STRINGback to summary
public static final Authorization.FieldType QUOTED_STRING
QUOTED_TOKENback to summary
public static final Authorization.FieldType QUOTED_TOKEN
TOKEN_OR_QUOTED_STRINGback to summary
public static final Authorization.FieldType TOKEN_OR_QUOTED_STRING

Constructor Detail

FieldTypeback to summary
private FieldType()

Method Detail

valueOfback to summary
public static Authorization.FieldType valueOf(String name)
valuesback to summary
public static Authorization.FieldType[] values()