Package | Description |
---|---|
org.refcodes.net |
Use the types and definitions of this artifact when you are tired of defining
your own networking based basics, your own HTTP-status-code enumerations
(
HttpStatusCode or exceptions representing erroneous
HTTP state, or if you are tired of cookie handling, Header-Field processing
... and so on:
This artifact provides various types such as Cookie ,
FormFields , HeaderFields or
HttpMethod , which enable you to use such HTTP based
structures in a native Java way while having a tool at hand to bridge back
into the HTTP protocol world. |
org.refcodes.net.impls |
This package contains implementations of the types defined by this artifact.
|
Modifier and Type | Method and Description |
---|---|
default BasicAuthCredentials |
HeaderFields.getBasicAuthCredentials()
Retrieves the
BasicAuthCredentials from the request (or null if
there are none such credentials). |
BasicAuthCredentials |
BasicAuthCredentialsAccessor.getBasicAuthCredentials()
Retrieves the
BasicAuthCredentials from the Basic-Authentication
credentials property (or null if there are none such credentials). |
default BasicAuthCredentials |
HeaderFields.putBasicAuthCredentials(BasicAuthCredentials aBasicAuthCredentials)
Sets the
BasicAuthCredentials (user name and secret) for HTTP
Basic-Authentication. |
BasicAuthCredentials |
BasicAuthCredentialsAccessor.BasicAuthCredentialsMutator.putBasicAuthCredentials(BasicAuthCredentials aBasicAuthCredentials)
Sets the
BasicAuthCredentials for the Basic-Authentication
credentials property. |
default BasicAuthCredentials |
BasicAuthCredentialsAccessor.BasicAuthCredentialsMutator.putBasicAuthCredentials(String aUserName,
String aSecret)
Sets the
BasicAuthCredentials from the user name and the
secret for the Basic-Authentication credentials property. |
default BasicAuthCredentials |
HeaderFields.removeBasicAuthCredentials()
Removes the
BasicAuthCredentials (user name and secret) for HTTP
Basic-Authentication. |
static BasicAuthCredentials |
BasicAuthCredentials.toBasicAuthCredentials()
Factory method to create an
BearerAuthCredentials instance to be
tailored with the according properties. |
static BasicAuthCredentials |
BasicAuthCredentials.toBasicAuthCredentials(String aUserName,
String aSecret)
Factory method to create an
BasicAuthCredentials instance from
the provided user-name and password. |
default BasicAuthCredentials |
BasicAuthCredentials.withHttpAuthorization(String aHttpAuthorization)
With http authorization.
|
Modifier and Type | Method and Description |
---|---|
BasicAuthResponse |
BasicAuthObserver.onBasicAuthRequest(InetSocketAddress aLocalAddress,
InetSocketAddress aRemoteAddress,
HttpMethod aHttpMethod,
String aLocator,
BasicAuthCredentials aCredentials,
String aRealm)
Invoked upon an incoming HTTP Basic-Authentication requests.
|
default BasicAuthCredentials |
HeaderFields.putBasicAuthCredentials(BasicAuthCredentials aBasicAuthCredentials)
Sets the
BasicAuthCredentials (user name and secret) for HTTP
Basic-Authentication. |
BasicAuthCredentials |
BasicAuthCredentialsAccessor.BasicAuthCredentialsMutator.putBasicAuthCredentials(BasicAuthCredentials aBasicAuthCredentials)
Sets the
BasicAuthCredentials for the Basic-Authentication
credentials property. |
default B |
HeaderFields.withBasicAuthCredentials(BasicAuthCredentials aBasicAuthCredentials)
Sets the
BasicAuthCredentials (user name and secret) for HTTP
Basic-Authentication. |
B |
BasicAuthCredentialsAccessor.BasicAuthCredentialsBuilder.withBasicAuthCredentials(BasicAuthCredentials aBasicAuthCredentials)
Sets the
BasicAuthCredentials for the Basic-Authentication
credentials property. |
Modifier and Type | Class and Description |
---|---|
class |
BasicAuthCredentialsImpl
This implementation of the
BasicAuthCredentials interface compares
the secret (BasicAuthCredentialsImpl.getSecret() ) case sensitive but the username (
BasicAuthCredentialsImpl.getUserName() ) case insensitive with the BasicAuthCredentialsImpl.equals(Object)
method. |
Copyright © 2017. All rights reserved.