public interface AuthScheme
Note that instances of this class may or may not map exactly to an Authentication Scheme as defined in RFC7235; a given instance may only be able to respond to a subset of challenges with a given scheme name.
|Modifier and Type
|Method and Description
Attempts to return an object that can take user input to generate an AuthContext based on a given challenge.
Returns a human-readable name identifying the authentication scheme implemented by this object.
token from an RFC7235 challenge (for instance "Basic" for Basic
authentication), but a different value may be used if required
to distinguish it from other instances.
ContextFactory createContextFactory(Challenge challenge, URL url) throws BadChallengeException
Note that this method should just examine the syntax of the supplied challenge; it is not expected to make network connections etc to determine if context creation will be successful.
challenge - authentication challenge object
url - URL with which the challenge is associated
BadChallengeException - if the challenge scheme etc
indicates that it is destined for this AuthScheme,
but the challenge is not of the correct form
Copyright © 2023 Central Laboratory of the Research Councils. All Rights Reserved.