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
public static class CertificateCredentialsImpl.UploadedKeyStoreSource.DescriptorImpl
extends CertificateCredentialsImpl.KeyStoreSourceDescriptor
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
-
Field Summary
Fields inherited from class hudson.model.Descriptor
clazz
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondoCheckUploadedKeystore
(String value, String uploadedCertFile, String password) Checks the keystore content.Creates the extension if we are not in FIPS mode, do NOT call this directly!static byte[]
toByteArray
(Secret secret) static Secret
toSecret
(byte[] contents) Deprecated.protected static FormValidation
validateCertificateKeystore
(byte[] keystoreBytes, String password) Helper method that performs form validation on aKeyStore
.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 Details
-
DEFAULT_VALUE
-
-
Constructor Details
-
DescriptorImpl
public DescriptorImpl()
-
-
Method Details
-
extension
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) @Extension public static CertificateCredentialsImpl.KeyStoreSourceDescriptor extension()Creates the extension if we are not in FIPS mode, do NOT call this directly! -
toByteArray
- Parameters:
secret
- the keystore as a secret.- Returns:
- the keystore bytes.
- See Also:
-
toSecret
Deprecated.- Parameters:
contents
- the keystore bytes.- Returns:
- the keystore as a secret.
- See Also:
-
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.
-
validateCertificateKeystore
@NonNull protected static FormValidation validateCertificateKeystore(byte[] keystoreBytes, String password) Helper method that performs form validation on aKeyStore
.
-
SecretBytes.fromBytes(byte[])