Package org.eclipse.aether.repository
Class AuthenticationDigest
java.lang.Object
org.eclipse.aether.repository.AuthenticationDigest
A helper to calculate a fingerprint/digest for the authentication data of a repository/proxy. Such a fingerprint can
 be used to detect changes in the authentication data across JVM restarts without exposing sensitive information.
- 
Method SummaryModifier and TypeMethodDescriptionstatic StringforProxy(RepositorySystemSession session, RemoteRepository repository) Gets the fingerprint for the authentication of the specified repository's proxy.static StringforRepository(RepositorySystemSession session, RemoteRepository repository) Gets the fingerprint for the authentication of the specified repository.getProxy()Gets the proxy (if any) to be authenticated with.Gets the repository requiring authentication.Gets the repository system session during which the authentication fingerprint is calculated.voidupdate(byte... bytes) Updates the digest with the specified bytes.voidupdate(char... chars) Updates the digest with the specified characters.voidUpdates the digest with the specified strings.
- 
Method Details- 
forRepositoryGets the fingerprint for the authentication of the specified repository.- Parameters:
- session- The repository system session during which the fingerprint is requested, must not be- null.
- repository- The repository whose authentication is to be fingerprinted, must not be- null.
- Returns:
- The fingerprint of the repository authentication or an empty string if no authentication is configured,
         never null.
 
- 
forProxyGets the fingerprint for the authentication of the specified repository's proxy.- Parameters:
- session- The repository system session during which the fingerprint is requested, must not be- null.
- repository- The repository whose proxy authentication is to be fingerprinted, must not be- null.
- Returns:
- The fingerprint of the proxy authentication or an empty string if no proxy is present or if no proxy
         authentication is configured, never null.
 
- 
getSessionGets the repository system session during which the authentication fingerprint is calculated.- Returns:
- The repository system session, never null.
 
- 
getRepositoryGets the repository requiring authentication. IfgetProxy()is notnull, the data gathered by this authentication digest does not apply to the repository's host but rather the proxy.- Returns:
- The repository to be contacted, never null.
 
- 
getProxyGets the proxy (if any) to be authenticated with.- Returns:
- The proxy or nullif authenticating directly with the repository's host.
 
- 
updateUpdates the digest with the specified strings.- Parameters:
- strings- The strings to update the digest with, may be- nullor contain- nullelements.
 
- 
updateUpdates the digest with the specified characters.- Parameters:
- chars- The characters to update the digest with, may be- null.
 
- 
updateUpdates the digest with the specified bytes.- Parameters:
- bytes- The bytes to update the digest with, may be- null.
 
 
-