public interface UsernamePasswordOnChallengeProvider
UsernamePasswordProvider
that can be used in case one wishes to react only to challenges and does not want
to provide credentials up front like UsernamePasswordProvider
supports.
This interface can be used with convenient Java 8 lambda expressions and the
CommonAuthFlowsConfigurator.supportBasicAuthUsing(UsernamePasswordOnChallengeProvider)
method.
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
onCredentialsNeededForChallenge(IReceiveEvent event)
This method is called during the HTTP conversation after having received a challenge.
|
java.lang.Object onCredentialsNeededForChallenge(IReceiveEvent event)
event
- the receive event, must be non-nullUsernamePasswordToken
object (allowing the flow to continue), or anything else
(including null) which leads to cancellation