/** * Adds all the system-scoped credentials (they will be filtered with {@link SSHAuthenticator#matcher()} * implicitly). * <p> * These credentials are meant to be used for system configuration and other things scoped to the {@link Jenkins} * object, * such as slaves. * </p> * * @return {@code this} for method chaining. */ public SSHUserListBoxModel withSystemScopeCredentials() { return withSystemScopeCredentials(Collections.<DomainRequirement>emptyList()); }
/** * Adds all the system-scoped credentials (they will be filtered with {@link SSHAuthenticator#matcher()} * implicitly). * <p> * These credentials are meant to be used for system configuration and other things scoped to the {@link Jenkins} * object, * such as slaves. * </p> * * @return {@code this} for method chaining. * @deprecated use {@link #withSystemScopeCredentials()} */ @Deprecated public SSHUserListBoxModel addSystemScopeCredentials() { return withSystemScopeCredentials(); }
/** * Adds all the system-scoped credentials. * <p> * These credentials are meant to be used for system configuration and other things scoped to the {@link Jenkins} * object, * such as slaves. * </p> * * @param matcher a matcher to filter the credentials * @param domainRequirements the domain requirements * @return {@code this} for method chaining. */ public SSHUserListBoxModel withSystemScopeCredentials(CredentialsMatcher matcher, DomainRequirement... domainRequirements) { return withSystemScopeCredentials(matcher, Arrays.asList(domainRequirements)); }
/** * Adds all the system-scoped credentials (they will be filtered with {@link SSHAuthenticator#matcher()} * implicitly). * <p> * These credentials are meant to be used for system configuration and other things scoped to the {@link Jenkins} * object, * such as slaves. * </p> * * @param domainRequirements the domain requirements * @return {@code this} for method chaining. */ public SSHUserListBoxModel withSystemScopeCredentials(DomainRequirement... domainRequirements) { return withSystemScopeCredentials(SSHAuthenticator.matcher(), domainRequirements); }
/** * Adds all the system-scoped credentials (they will be filtered with {@link SSHAuthenticator#matcher()} * implicitly). * <p> * These credentials are meant to be used for system configuration and other things scoped to the {@link Jenkins} * object, * such as slaves. * </p> * * @param domainRequirements the domain requirements * @return {@code this} for method chaining. */ public SSHUserListBoxModel withSystemScopeCredentials(List<DomainRequirement> domainRequirements) { return withSystemScopeCredentials(SSHAuthenticator.matcher(), domainRequirements); }