@CanIgnoreReturnValue
    public AuthenticationBuilder setCredentials(final @NonNull List<Credential> credentials) {
        this.credentials.clear();
        this.credentials.addAll(credentials);
        return this;
    }
Sets the list of metadata about credentials presented for authentication.

@param credentials Non-null list of credential metadata.
@return This builder instance.
core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/DefaultAuthenticationBuilder.java