|
AuthenticationService v0.3.0+7-g8a7f190
|
Represents the authorization header sent to an application. More...
Public Member Functions | |
| virtual void | Validate (String schema) |
| Validates the header for a schema. More... | |
| bool | IsValid (String schema) |
| Checks if the header is valid for a schema. More... | |
Protected Member Functions | |
| virtual String | GetHeaderPart (String header, int valuePart) |
| Extracts a certain part of the header. More... | |
Protected Attributes | |
| String[] | parts |
| The parts of the split header. More... | |
Static Protected Attributes | |
| const int | SCHEMA_HEADER_PART = 0 |
| Defines the segment containing schema information in the split header. More... | |
Properties | |
| String | Header [get, set] |
| the complete header. More... | |
| String | Schema [get] |
| The schema contained in the header. More... | |
Represents the authorization header sent to an application.
|
protectedvirtual |
Extracts a certain part of the header.
| header | the complete header |
| valuePart | the part to retrieve as a number |
Reimplemented in BasicAuthorizationHeader.
| bool AuthorizationHeader.IsValid | ( | String | schema | ) |
Checks if the header is valid for a schema.
| schema | the expected schema |
|
virtual |
Validates the header for a schema.
| schema | the expected schema |
| AuthorizationException | if the header is empty or does not match the expected schema. |
Reimplemented in BasicAuthorizationHeader.
|
protected |
The parts of the split header.
|
staticprotected |
Defines the segment containing schema information in the split header.
|
getset |
the complete header.
|
get |
The schema contained in the header.