if (credentials instanceof CertificateCredentialsImpl) { final KeyStoreSource keyStoreSource = ((CertificateCredentialsImpl) credentials).getKeyStoreSource(); if (keyStoreSource.isSnapshotSource()) { return credentials;
if (credentials instanceof CertificateCredentialsImpl) { final KeyStoreSource keyStoreSource = ((CertificateCredentialsImpl) credentials).getKeyStoreSource(); if (keyStoreSource.isSnapshotSource()) { return credentials;
/** * When serializing over a {@link Channel} ensure that we send a self-contained version. * * @return the object instance to write to the stream. */ private Object writeReplace() { if (/* XStream */Channel.current() == null || /* already safe to serialize */ keyStoreSource .isSnapshotSource()) { return this; } return CredentialsProvider.snapshot(this); }
/** * When serializing over a {@link Channel} ensure that we send a self-contained version. * * @return the object instance to write to the stream. */ private Object writeReplace() { if (/* XStream */Channel.current() == null || /* already safe to serialize */ keyStoreSource .isSnapshotSource()) { return this; } return CredentialsProvider.snapshot(this); }