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
FieldsFields inherited from class hudson.model.Descriptor
clazz -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoCheckUploadedKeystore(String value, String certificateBase64, 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 SecrettoSecret(byte[] contents) Deprecated.protected static FormValidationvalidateCertificateKeystore(byte[] keystoreBytes, String password) Helper method that performs form validation on aKeyStore.Methods inherited from class com.cloudbees.plugins.credentials.impl.CertificateCredentialsImpl.KeyStoreSourceDescriptor
validateCertificateKeystoreMethods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, configure, doHelp, 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, getStaticHelpUrl, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, 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:
getDisplayNamein classDescriptor<CertificateCredentialsImpl.KeyStoreSource>
-
doCheckUploadedKeystore
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public FormValidation doCheckUploadedKeystore(@QueryParameter String value, @QueryParameter String certificateBase64, @QueryParameter String password) Checks the keystore content.- Parameters:
value- the keystore content.password- the password.- Returns:
- the
FormValidationresults.
-
validateCertificateKeystore
@NonNull protected static FormValidation validateCertificateKeystore(byte[] keystoreBytes, String password) Helper method that performs form validation on aKeyStore.
-
SecretBytes.fromBytes(byte[])