package org.jenkinsci.plugins.p4_client.credentials; import org.kohsuke.stapler.DataBoundConstructor; import hudson.Extension; import hudson.Util; import hudson.util.Secret; import com.cloudbees.plugins.credentials.CredentialsDescriptor; import com.cloudbees.plugins.credentials.CredentialsScope; import edu.umd.cs.findbugs.annotations.CheckForNull; import edu.umd.cs.findbugs.annotations.NonNull; public class P4PasswordImpl extends P4StandardCredentials { /** * Ensure consistent serialisation. */ private static final long serialVersionUID = 1L; @NonNull private final String p4port; @NonNull private final String username; @NonNull private final Secret password; @DataBoundConstructor public P4PasswordImpl(@CheckForNull CredentialsScope scope, @CheckForNull String id, @CheckForNull String description, @CheckForNull String p4port, @CheckForNull String username, @CheckForNull String password) { super(scope, id, description); this.p4port = Util.fixNull(p4port); this.username = Util.fixNull(username); this.password = Secret.fromString(password); } @NonNull public String getP4port() { return p4port; } @NonNull public String getUsername() { return username; } @NonNull public Secret getPassword() { return password; } @Extension public static class DescriptorImpl extends CredentialsDescriptor { @Override public String getDisplayName() { return "P4 Password Credentials"; } } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#14 | 9672 | Paul Allen | Refactor name from 'p4_client' to 'p4'. | ||
#13 | 9428 | Paul Allen |
Clarification of Polling Filters in UX and UserGuide - Tidyup unused imports |
||
#12 | 9038 | Paul Allen |
Improved error messages for Form Validate field checks. Uses Perforce Server messages (TPI-80) |
||
#11 | 9032 | Paul Allen |
Perforce Credentials help and form validation checks for misuse of 'ssl:' on P4PORT. (TPI-107) |
||
#10 | 8888 | Paul Allen |
Extended test coverage for Workspace and Credentials. - Removed ununsed methods. |
||
#9 | 8771 | Paul Allen |
Perforce Server 12.1 min check for: Build configuration and password/ticket credentials. Includes: - Added logging for Perforce connections (fine) and set connection pool to 2. - Add 'none' to empty charset list (connection bug?) - Supress P4Java errors for syncing ubinary, xtext, unicode |
||
#8 | 8742 | Paul Allen | Added SSL support to "Test Connection" button for Perforce Credentials. | ||
#7 | 8741 | Paul Allen |
Added "Test Connection" to Perforce Password and Ticket Credentials. Does not support SSL connections...yet |
||
#6 | 8737 | Paul Allen |
Added basic Help for SCM Configuration page. Tidy up descriptions and fix (null:null) in Credential summary. |
||
#5 | 8660 | Paul Allen | Added P4TRUST for SSL connections in the Credentials plugin and ConnectionFactory. | ||
#4 | 8639 | Paul Allen |
Added hint URL to Credentials page when no Credentials are defined. Minor refactor and UX changes. |
||
#3 | 8629 | Paul Allen |
Added p4java with connection/authorisation helper classes. Included SSL support and detection of Unicode servers. |
||
#2 | 8612 | Paul Allen | Job can now select and save/load Credential choice (some cleanup TODO) | ||
#1 | 8611 | Paul Allen | Basic implementation of Credentials Store |