Class ComponentAuthentication
java.lang.Object
org.eclipse.aether.util.repository.ComponentAuthentication
- All Implemented Interfaces:
Authentication
Authentication block that manages a single authentication key and its component value. In this context, component
refers to an object whose behavior is solely dependent on its implementation class.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
digest
(AuthenticationDigest digest) Updates the given digest with data from this authentication callback.private static <T> boolean
eqClass
(T s1, T s2) boolean
void
Fills the given authentication context with the data from this authentication callback.int
hashCode()
toString()
-
Field Details
-
key
-
value
-
-
Constructor Details
-
ComponentAuthentication
-
-
Method Details
-
fill
Description copied from interface:Authentication
Fills the given authentication context with the data from this authentication callback. To do so, implementors have to callAuthenticationContext.put(String, Object)
.
Thekey
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.- Specified by:
fill
in interfaceAuthentication
- Parameters:
context
- The authentication context to populate, must not benull
.key
- The key denoting a specific piece of authentication data that is being requested for a network operation, may benull
.data
- Any (read-only) extra data in form of key value pairs that might be useful when getting the authentication data, may benull
.
-
digest
Description copied from interface:Authentication
Updates the given digest with data from this authentication callback. To do so, implementors have to call theupdate()
methods inAuthenticationDigest
.- Specified by:
digest
in interfaceAuthentication
- Parameters:
digest
- The digest to update, must not benull
.
-
equals
-
eqClass
private static <T> boolean eqClass(T s1, T s2) -
hashCode
public int hashCode() -
toString
-