public interface Credentials
original
non RX-ified interface using Vert.x codegen.Modifier and Type | Method and Description |
---|---|
Credentials |
applyHttpChallenge(String challenge)
Applies the HTTP Authorization challenge to this Credential instance.
|
Credentials |
applyHttpChallenge(String challenge,
HttpMethod method,
String uri)
Applies the HTTP Authorization challenge to this Credential instance.
|
Credentials |
applyHttpChallenge(String challenge,
HttpMethod method,
String uri,
Integer nc,
String cnonce)
Applies the HTTP Authorization challenge to this Credential instance.
|
<V> void |
checkValid(V arg)
Implementors should override this method to perform validation.
|
Credentials |
getDelegate() |
static Credentials |
newInstance(Credentials arg) |
String |
toHttpAuthorization()
Encodes this credential as an HTTP Authorization https://tools.ietf.org/html/rfc7235.
|
JsonObject |
toJson()
Simple interop to downcast back to JSON for backwards compatibility.
|
Credentials getDelegate()
<V> void checkValid(V arg)
arg
- optional argument or null.JsonObject toJson()
Credentials applyHttpChallenge(String challenge, HttpMethod method, String uri, Integer nc, String cnonce)
challenge
- the challenge is the WWW-Authenticate
header response from a 401 request. Null challenges are allowed, and in this case, no verification will be performed, however it is up to the implementation to permit this.method
- The http method this response is responding.uri
- The http uri this response is responding.nc
- The client internal counter (optional).cnonce
- The client internal nonce (optional).Credentials applyHttpChallenge(String challenge, HttpMethod method, String uri)
challenge
- the challenge is the WWW-Authenticate
header response from a 401 request. Null challenges are allowed, and in this case, no verification will be performed, however it is up to the implementation to permit this.method
- The http method this response is responding.uri
- The http uri this response is responding.Credentials applyHttpChallenge(String challenge)
challenge
- the challenge is the WWW-Authenticate
header response from a 401 request. Null challenges are allowed, and in this case, no verification will be performed, however it is up to the implementation to permit this.String toHttpAuthorization()
applyHttpChallenge(java.lang.String, io.vertx.core.http.HttpMethod, java.lang.String, java.lang.Integer, java.lang.String)
has
been prior executed. For some Authentication schemes, this isn't a requirement but doing so ensures that the
object is on the right state.static Credentials newInstance(Credentials arg)
Copyright © 2020 Eclipse. All rights reserved.