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 |
|
#2
|
9964 |
Paul Allen |
More updates to code for new 1.569 plugin version. |
|
|
#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 |
|
|