Class DefaultAuthenticationSelector

  • All Implemented Interfaces:
    org.eclipse.aether.repository.AuthenticationSelector

    public final class DefaultAuthenticationSelector
    extends java.lang.Object
    implements org.eclipse.aether.repository.AuthenticationSelector
    A simple authentication selector that selects authentication based on repository identifiers.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      DefaultAuthenticationSelector add​(java.lang.String id, org.eclipse.aether.repository.Authentication auth)
      Adds the specified authentication info for the given repository identifier.
      org.eclipse.aether.repository.Authentication getAuthentication​(org.eclipse.aether.repository.RemoteRepository repository)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • add

        public DefaultAuthenticationSelector add​(java.lang.String id,
                                                 org.eclipse.aether.repository.Authentication auth)
        Adds the specified authentication info for the given repository identifier.
        Parameters:
        id - The identifier of the repository to add the authentication for, must not be null.
        auth - The authentication to add, may be null.
        Returns:
        This selector for chaining, never null.
      • getAuthentication

        public org.eclipse.aether.repository.Authentication getAuthentication​(org.eclipse.aether.repository.RemoteRepository repository)
        Specified by:
        getAuthentication in interface org.eclipse.aether.repository.AuthenticationSelector