/** * Returns the {@link CredentialsDescriptor#getDisplayName()}. * * @return the {@link CredentialsDescriptor#getDisplayName()}. */ public String getKind() { return credentials.getDescriptor().getDisplayName(); }
/** * {@inheritDoc} */ @Override public String getIconClassName() { return credentials.getDescriptor().getIconClassName(); }
/** * {@inheritDoc} */ @Override public String getIconClassName() { return credentials.getDescriptor().getIconClassName(); }
/** * {@inheritDoc} */ @Override public String getIconClassName() { return credentials.getDescriptor().getIconClassName(); }
/** * Returns the {@link CredentialsDescriptor#getDisplayName()}. * * @return the {@link CredentialsDescriptor#getDisplayName()}. */ public String getKind() { return credentials.getDescriptor().getDisplayName(); }
/** * {@inheritDoc} */ @Override public String getIconClassName() { return credentials.getDescriptor().getIconClassName(); }
/** * Gets the display name of the {@link CredentialsDescriptor}. * * @return the display name of the {@link CredentialsDescriptor}. */ @Exported public String getTypeName() { return credentials.getDescriptor().getDisplayName(); }
/** * Gets the display name of the {@link CredentialsDescriptor}. * * @return the display name of the {@link CredentialsDescriptor}. */ @Exported public String getTypeName() { return credentials.getDescriptor().getDisplayName(); }
@Nonnull protected static Collection<String> toString(@Nonnull Iterable<Credentials> credentials) { List<String> result = new ArrayList<>(); for (Credentials creds : credentials) { if (creds instanceof PasswordCredentials) { PasswordCredentials passwordCredentials = (PasswordCredentials) creds; result.add(passwordCredentials.getPassword().getPlainText()); } else if (creds instanceof SSHUserPrivateKey) { SSHUserPrivateKey sshUserPrivateKey = (SSHUserPrivateKey) creds; Secret passphrase = sshUserPrivateKey.getPassphrase(); if (passphrase != null) { result.add(passphrase.getPlainText()); } // omit the private key, there } else { LOGGER.log(Level.FINE, "Skip masking of unsupported credentials type {0}: {1}", new Object[]{creds.getClass(), creds.getDescriptor().getDisplayName()}); } } return result; } }
return credentials.getDescriptor().getDisplayName(); } catch (AssertionError e) { return credentials.getClass().getSimpleName();
return credentials.getDescriptor().getDisplayName(); } catch (AssertionError e) { return credentials.getClass().getSimpleName();