Class AuthenticationChallenge
java.lang.Object
org.apache.sshd.client.session.proxy.AuthenticationChallenge
A simple representation of an authentication challenge as sent in a "WWW-Authenticate" or "Proxy-Authenticate"
header. Such challenges start with a mechanism name, followed either by one single token, or by a list of key=value
pairs.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAuthenticationChallenge(String mechanism) Create a newAuthenticationChallengewith the given mechanism. -
Method Summary
-
Constructor Details
-
AuthenticationChallenge
Create a newAuthenticationChallengewith the given mechanism.- Parameters:
mechanism- for the challenge
-
-
Method Details
-
getMechanism
Retrieves the authentication mechanism specified by this challenge, for instance "Basic".- Returns:
- the mechanism name
-
getToken
Retrieves the token of the challenge, if any.- Returns:
- the token, or
nullif there is none.
-
getArguments
-
toString
-