package com.atlassian.bitbucket.internal.mirroring.auth;

import javax.annotation.Nonnull;

/**
 * Visits the main subtypes of {@link Credentials}
 */
public interface CredentialsVisitor<U> {
    U visit(@Nonnull SshCredentials credentials);

    U visit(@Nonnull UsernamePasswordCredentials credentials);
}
