Package io.jenkins.blueocean.credential
Class CredentialsUtils
java.lang.Object
io.jenkins.blueocean.credential.CredentialsUtils
Credentials utility
- Author:
- Vivek Pandey
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
createCredentialsInUserStore
(com.cloudbees.plugins.credentials.Credentials credential, User user, String domainName, List<com.cloudbees.plugins.credentials.domains.DomainSpecification> domainSpecifications) static <C extends com.cloudbees.plugins.credentials.Credentials>
CfindCredential
(String credentialId, Class<C> type, com.cloudbees.plugins.credentials.domains.DomainRequirement... domainRequirements) static com.cloudbees.plugins.credentials.domains.Domain
findDomain
(String credentialId, User user) static List<com.cloudbees.plugins.credentials.domains.DomainSpecification>
generateDomainSpecifications
(String uriStr) static Iterable<com.cloudbees.plugins.credentials.domains.Domain>
getUserDomains
(User user) Get all domains this user has access tostatic void
updateCredentialsInUserStore
(com.cloudbees.plugins.credentials.Credentials current, com.cloudbees.plugins.credentials.Credentials replacement, User user, String domainName, List<com.cloudbees.plugins.credentials.domains.DomainSpecification> domainSpecifications)
-
Constructor Details
-
CredentialsUtils
public CredentialsUtils()
-
-
Method Details
-
createCredentialsInUserStore
public static void createCredentialsInUserStore(@NonNull com.cloudbees.plugins.credentials.Credentials credential, @NonNull User user, @NonNull String domainName, @NonNull List<com.cloudbees.plugins.credentials.domains.DomainSpecification> domainSpecifications) throws IOException - Throws:
IOException
-
updateCredentialsInUserStore
public static void updateCredentialsInUserStore(@NonNull com.cloudbees.plugins.credentials.Credentials current, @NonNull com.cloudbees.plugins.credentials.Credentials replacement, @NonNull User user, @NonNull String domainName, @NonNull List<com.cloudbees.plugins.credentials.domains.DomainSpecification> domainSpecifications) throws IOException - Throws:
IOException
-
findDomain
-
getUserDomains
@NonNull public static Iterable<com.cloudbees.plugins.credentials.domains.Domain> getUserDomains(@NonNull User user) Get all domains this user has access to -
findCredential
-
generateDomainSpecifications
-