package org.jenkinsci.plugins.p4.credentials; import hudson.model.Hudson; import org.kohsuke.stapler.export.ExportedBean; import com.cloudbees.plugins.credentials.Credentials; 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; @ExportedBean public class P4Credentials implements Credentials { private static final long serialVersionUID = 1L; @CheckForNull private final CredentialsScope scope; protected P4Credentials() { this.scope = null; } /** * Create instance with specified scope. * * @param scope */ public P4Credentials(@CheckForNull CredentialsScope scope) { this.scope = scope; } @CheckForNull public CredentialsScope getScope() { return scope; } @NonNull public CredentialsDescriptor getDescriptor() { return (CredentialsDescriptor) Hudson.getInstance().getDescriptorOrDie( getClass()); } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 11053 | Paul Allen | Branching using p4-jenkins | ||
//guest/perforce_software/p4jenkins/main/src/main/java/org/jenkinsci/plugins/p4/credentials/P4Credentials.java | |||||
#1 | 9690 | Paul Allen |
[Branching using p4-jenkins] Release 1.0.1 |
||
//guest/paul_allen/dev/p4-jenkins/p4-client/src/main/java/org/jenkinsci/plugins/p4/credentials/P4Credentials.java | |||||
#1 | 9672 | Paul Allen | Refactor name from 'p4_client' to 'p4'. | ||
//guest/paul_allen/dev/p4-jenkins/p4-client/src/main/java/org/jenkinsci/plugins/p4_client/credentials/P4Credentials.java | |||||
#1 | 8611 | Paul Allen | Basic implementation of Credentials Store |