/** * Our constructor. * * @param uploadedKeystore the keystore content. * @deprecated */ @SuppressWarnings("unused") // by stapler @Deprecated public UploadedKeyStoreSource(String uploadedKeystore) { this.uploadedKeystoreBytes = StringUtils.isBlank(uploadedKeystore) ? null : SecretBytes.fromBytes(DescriptorImpl.toByteArray(Secret.fromString(uploadedKeystore))); }
/** * Our constructor. * * @param uploadedKeystore the keystore content. * @deprecated */ @SuppressWarnings("unused") // by stapler @Deprecated public UploadedKeyStoreSource(String uploadedKeystore) { this.uploadedKeystoreBytes = StringUtils.isBlank(uploadedKeystore) ? null : SecretBytes.fromBytes(DescriptorImpl.toByteArray(Secret.fromString(uploadedKeystore))); }
/** * Migrate to the new field. * * @return the deserialized object. * @throws ObjectStreamException if something didn't work. * @since 2.1.5 */ private Object readResolve() throws ObjectStreamException { if (uploadedKeystore != null && uploadedKeystoreBytes == null) { return new UploadedKeyStoreSource(SecretBytes.fromBytes(DescriptorImpl.toByteArray(uploadedKeystore))); } return this; }
/** * Migrate to the new field. * * @return the deserialized object. * @throws ObjectStreamException if something didn't work. * @since 2.1.5 */ private Object readResolve() throws ObjectStreamException { if (uploadedKeystore != null && uploadedKeystoreBytes == null) { return new UploadedKeyStoreSource(SecretBytes.fromBytes(DescriptorImpl.toByteArray(uploadedKeystore))); } return this; }