/** * Wrap credentials into an authentication transaction, as a factory method, * and return the final result. * * @param credentials the credentials * @return the authentication transaction */ public static AuthenticationTransaction wrap(final Credential... credentials) { return new AuthenticationTransaction(sanitizeCredentials(credentials)); }