/** * Helper method that returns a safe description of a {@link SSHUser}. * * @param c the credentials. * @return the description. */ @Nonnull public static String description(@Nonnull StandardUsernameCredentials c) { String description = Util.fixEmptyAndTrim(c.getDescription()); return c.getUsername() + (description != null ? " (" + description + ")" : ""); }
/** * {@inheritDoc} */ @NonNull @Override public String getName(@NonNull StandardUsernameCredentials c) { String description = Util.fixEmptyAndTrim(c.getDescription()); return c.getUsername() + (description != null ? " (" + description + ")" : ""); } }
/** * {@inheritDoc} */ @NonNull @Override public String getName(@NonNull StandardUsernameCredentials c) { String description = Util.fixEmptyAndTrim(c.getDescription()); return c.getUsername() + "/******" + (description != null ? " (" + description + ")" : ""); } }
/** * {@inheritDoc} */ @NonNull @Override public String getName(@NonNull StandardUsernameCredentials c) { String description = Util.fixEmptyAndTrim(c.getDescription()); return c.getUsername() + "/******" + (description != null ? " (" + description + ")" : ""); } }
/** * {@inheritDoc} */ @NonNull @Override public String getName(@NonNull StandardUsernameCredentials c) { String description = Util.fixEmptyAndTrim(c.getDescription()); return c.getUsername() + (description != null ? " (" + description + ")" : ""); } }
/** * {@inheritDoc} */ @NonNull protected String describe(@NonNull StandardUsernameCredentials c) { String description = Util.fixEmptyAndTrim(c.getDescription()); return c.getUsername() + (description != null ? " (" + description + ")" : ""); }