Class ConservativeAuthenticationSelector

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

    public final class ConservativeAuthenticationSelector
    extends java.lang.Object
    implements org.eclipse.aether.repository.AuthenticationSelector
    An authentication selector that delegates to another selector but only if a repository has no authentication data yet. If authentication has already been assigned to a repository, that is selected.
    • Constructor Summary

      Constructors 
      Constructor Description
      ConservativeAuthenticationSelector​(org.eclipse.aether.repository.AuthenticationSelector selector)
      Creates a new selector that delegates to the specified selector.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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
    • Constructor Detail

      • ConservativeAuthenticationSelector

        public ConservativeAuthenticationSelector​(org.eclipse.aether.repository.AuthenticationSelector selector)
        Creates a new selector that delegates to the specified selector.
        Parameters:
        selector - The selector to delegate to in case a repository has no authentication yet, must not be null.
    • Method Detail

      • getAuthentication

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