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

import com.atlassian.bitbucket.validation.annotation.RequiredString;

import javax.annotation.Nonnull;

/**
 * Credentials consisting of a username and password
 */
public interface UsernamePasswordCredentials extends Credentials {
    @Nonnull
    @RequiredString(message = "{bitbucket.mirroring.authentication.usernamepassword.username.required}")
    String getUsername();

    @Nonnull
    @RequiredString(message = "{bitbucket.mirroring.authentication.usernamepassword.password.required}")
    String getPassword();
}
