Class CertificateCredentialsImpl.UploadedKeyStoreSource.DescriptorImpl
- java.lang.Object
-
- hudson.model.Descriptor<CertificateCredentialsImpl.KeyStoreSource>
-
- com.cloudbees.plugins.credentials.impl.CertificateCredentialsImpl.KeyStoreSourceDescriptor
-
- com.cloudbees.plugins.credentials.impl.CertificateCredentialsImpl.UploadedKeyStoreSource.DescriptorImpl
-
- Enclosing class:
- CertificateCredentialsImpl.UploadedKeyStoreSource
@Extension public static class CertificateCredentialsImpl.UploadedKeyStoreSource.DescriptorImpl extends CertificateCredentialsImpl.KeyStoreSourceDescriptor
The base class for allCertificateCredentialsImpl.KeyStoreSource
Descriptor
instances.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_VALUE
-
Fields inherited from class hudson.model.Descriptor
clazz
-
-
Constructor Summary
Constructors Constructor Description DescriptorImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description FormValidation
doCheckUploadedKeystore(String value, String uploadedCertFile, String password)
Checks the keystore content.String
getDisplayName()
CertificateCredentialsImpl.UploadedKeyStoreSource.Upload
getUpload(String divId)
Creates a newCertificateCredentialsImpl.UploadedKeyStoreSource.Upload
for the specified <input id="..."/>static byte[]
toByteArray(Secret secret)
static Secret
toSecret(byte[] contents)
Deprecated.-
Methods inherited from class com.cloudbees.plugins.credentials.impl.CertificateCredentialsImpl.KeyStoreSourceDescriptor
validateCertificateKeystore
-
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
-
-
-
Field Detail
-
DEFAULT_VALUE
public static final String DEFAULT_VALUE
-
-
Method Detail
-
toByteArray
@NonNull public static byte[] toByteArray(@Nullable Secret secret)
- Parameters:
secret
- the keystore as a secret.- Returns:
- the keystore bytes.
- See Also:
toSecret(byte[])
-
toSecret
@Deprecated @CheckForNull public static Secret toSecret(@Nullable byte[] contents)
Deprecated.- Parameters:
contents
- the keystore bytes.- Returns:
- the keystore as a secret.
- See Also:
toByteArray(Secret)
-
getDisplayName
@NonNull public String getDisplayName()
- Overrides:
getDisplayName
in classDescriptor<CertificateCredentialsImpl.KeyStoreSource>
-
doCheckUploadedKeystore
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public FormValidation doCheckUploadedKeystore(@QueryParameter String value, @QueryParameter String uploadedCertFile, @QueryParameter String password)
Checks the keystore content.- Parameters:
value
- the keystore content.password
- the password.- Returns:
- the
FormValidation
results.
-
getUpload
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public CertificateCredentialsImpl.UploadedKeyStoreSource.Upload getUpload(String divId)
Creates a newCertificateCredentialsImpl.UploadedKeyStoreSource.Upload
for the specified <input id="..."/>- Parameters:
divId
- the id if the form input element to inject the uploaded content into.- Returns:
- the
CertificateCredentialsImpl.UploadedKeyStoreSource.Upload
-
-