Package org.openstreetmap.josm.io.auth
Interface AbstractCredentialsAgent.CredentialsProvider
-
- Enclosing class:
- AbstractCredentialsAgent
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public static interface AbstractCredentialsAgent.CredentialsProvider
Synchronous credentials provider. Called if no credentials are cached. Can be used for user login prompt.- Since:
- 12821
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
provideCredentials(Authenticator.RequestorType requestorType, AbstractCredentialsAgent agent, CredentialsAgentResponse response, String username, String password, String host)
Fills the given response with appropriate user credentials.
-
-
-
Method Detail
-
provideCredentials
void provideCredentials(Authenticator.RequestorType requestorType, AbstractCredentialsAgent agent, CredentialsAgentResponse response, String username, String password, String host)
Fills the given response with appropriate user credentials.- Parameters:
requestorType
- type of the entity requesting authenticationagent
- the credentials agent requesting credentialsresponse
- authentication response to fillusername
- the known username, if any. Likely to be emptypassword
- the known password, if any. Likely to be emptyhost
- the host against authentication will be performed
-
-