public interface Authentication
Modifier and Type | Method and Description |
---|---|
void |
digest(AuthenticationDigest digest)
Updates the given digest with data from this authentication callback.
|
void |
fill(AuthenticationContext context,
String key,
Map<String,String> data)
Fills the given authentication context with the data from this authentication callback.
|
void fill(AuthenticationContext context, String key, Map<String,String> data)
AuthenticationContext.put(String, Object)
. key
parameter supplied to this method acts merely as a hint for interactive callbacks that want to
prompt the user for only that authentication data which is required. Implementations are free to ignore this
parameter and put all the data they have into the authentication context at once.context
- The authentication context to populate, must not be null
.key
- The key denoting a specific piece of authentication data that is being requested for a network
operation, may be null
.data
- Any (read-only) extra data in form of key value pairs that might be useful when getting the
authentication data, may be null
.void digest(AuthenticationDigest digest)
update()
methods in AuthenticationDigest
.digest
- The digest to update, must not be null
.Copyright © 2010–2017 The Apache Software Foundation. All rights reserved.