@DataBoundConstructor public GhprbGitHubAuth( String serverAPIUrl, String jenkinsUrl, String credentialsId, String description, String id, Secret secret ) { if (StringUtils.isEmpty(serverAPIUrl)) { serverAPIUrl = "https://api.github.com"; } this.serverAPIUrl = fixEmptyAndTrim(serverAPIUrl); this.jenkinsUrl = fixEmptyAndTrim(jenkinsUrl); this.credentialsId = fixEmpty(credentialsId); if (StringUtils.isEmpty(id)) { id = UUID.randomUUID().toString(); } this.id = IdCredentials.Helpers.fixEmptyId(id); this.description = description; this.secret = secret; }
/** * Constructor. * * @param scope the scope. * @param id the id. * @param description the description. */ public BaseStandardCredentials(@CheckForNull CredentialsScope scope, @CheckForNull String id, @CheckForNull String description) { super(scope); this.id = IdCredentials.Helpers.fixEmptyId(id); this.description = Util.fixNull(description); }
/** * Constructor. * * @param id the id. * @param description the description. */ public BaseStandardCredentials(@CheckForNull String id, @CheckForNull String description) { super(); this.id = IdCredentials.Helpers.fixEmptyId(id); this.description = Util.fixNull(description); }
/** * {@inheritDoc} */ @Override public final boolean equals(Object o) { return IdCredentials.Helpers.equals(this, o); }
/** * Constructor. * * @param scope the scope. * @param id the id. * @param description the description. */ public BaseStandardCredentials(@CheckForNull CredentialsScope scope, @CheckForNull String id, @CheckForNull String description) { super(scope); this.id = IdCredentials.Helpers.fixEmptyId(id); this.description = Util.fixNull(description); }
/** * {@inheritDoc} */ @Override public final boolean equals(Object o) { return IdCredentials.Helpers.equals(this, o); }
/** * Constructor. * * @param id the id. * @param description the description. */ public BaseStandardCredentials(@CheckForNull String id, @CheckForNull String description) { super(); this.id = IdCredentials.Helpers.fixEmptyId(id); this.description = Util.fixNull(description); }
/** * {@inheritDoc} */ @Override public final int hashCode() { return IdCredentials.Helpers.hashCode(this); }
/** * {@inheritDoc} */ @Override public final int hashCode() { return IdCredentials.Helpers.hashCode(this); }