new UploadedKeyStoreSource(SecretBytes.fromBytes(keyStoreSource.getKeyStoreBytes()))); new UploadedKeyStoreSource(SecretBytes.fromBytes(bos.toByteArray())));
new UploadedKeyStoreSource(SecretBytes.fromBytes(keyStoreSource.getKeyStoreBytes()))); new UploadedKeyStoreSource(SecretBytes.fromBytes(bos.toByteArray())));
@Override public StandardCertificateCredentials toCredentials(String description) { return new CertificateCredentialsImpl(CredentialsScope.GLOBAL, null, description, Scrambler.descramble(Secret.toString(password)), new CertificateCredentialsImpl.UploadedKeyStoreSource(certificate.getEncryptedValue())); }
/** * 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; }