Class CredentialsBindingHandler<C extends com.cloudbees.plugins.credentials.common.StandardCredentials>

  • All Implemented Interfaces:
    ExtensionPoint

    public abstract class CredentialsBindingHandler<C extends com.cloudbees.plugins.credentials.common.StandardCredentials>
    extends Object
    implements ExtensionPoint
    Simplified Binding handler for use in environment {}
    • Constructor Detail

      • CredentialsBindingHandler

        public CredentialsBindingHandler()
    • Method Detail

      • handles

        public boolean handles​(Class<? extends com.cloudbees.plugins.credentials.common.StandardCredentials> c)
      • handles

        public boolean handles​(com.cloudbees.plugins.credentials.common.StandardCredentials c)
      • type

        @NonNull
        public abstract Class<? extends com.cloudbees.plugins.credentials.common.StandardCredentials> type()
      • getWithCredentialsParameters

        @NonNull
        public abstract List<Map<String,​Object>> getWithCredentialsParameters​(String credentialsId)
      • supportedTypes

        @NonNull
        public static Set<Class<? extends com.cloudbees.plugins.credentials.common.StandardCredentials>> supportedTypes()
      • supportedTypeNames

        @NonNull
        public static Set<String> supportedTypeNames()
      • forCredential

        @CheckForNull
        public static CredentialsBindingHandler forCredential​(com.cloudbees.plugins.credentials.common.StandardCredentials c)
      • forId

        @NonNull
        public static CredentialsBindingHandler forId​(String id,
                                                      Run context)
                                               throws org.jenkinsci.plugins.credentialsbinding.impl.CredentialNotFoundException
        Throws:
        org.jenkinsci.plugins.credentialsbinding.impl.CredentialNotFoundException