public static class CertificateCredentialsImpl.UploadedKeyStoreSource extends CertificateCredentialsImpl.KeyStoreSource implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
CertificateCredentialsImpl.UploadedKeyStoreSource.DescriptorImpl
The base class for all
CertificateCredentialsImpl.KeyStoreSource Descriptor instances. |
static class |
CertificateCredentialsImpl.UploadedKeyStoreSource.Upload
Deprecated.
since 2.4. This is no longer required/supported due to the inlining of the file input.
Deprecated for removal soon.
|
| Constructor and Description |
|---|
UploadedKeyStoreSource(org.apache.commons.fileupload.FileItem uploadedCertFile,
SecretBytes uploadedKeystore)
Constructor able to receive file directly
|
UploadedKeyStoreSource(SecretBytes uploadedKeystore)
Deprecated.
|
UploadedKeyStoreSource(String uploadedKeystore)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getKeyStoreBytes()
Returns the
byte[] content of the KeyStore. |
long |
getKeyStoreLastModified()
Returns a
System.currentTimeMillis() comparable timestamp of when the content was last modified. |
SecretBytes |
getUploadedKeystore()
Returns the private key file name.
|
boolean |
isSnapshotSource()
Returns
true if and only if the source is self contained. |
String |
toString() |
getDescriptor@Deprecated public UploadedKeyStoreSource(String uploadedKeystore)
uploadedKeystore - the keystore content.@Deprecated public UploadedKeyStoreSource(SecretBytes uploadedKeystore)
uploadedKeystore - the keystore content.@DataBoundConstructor
public UploadedKeyStoreSource(org.apache.commons.fileupload.FileItem uploadedCertFile,
SecretBytes uploadedKeystore)
uploadedCertFile - the keystore content from the file uploaduploadedKeystore - the keystore encrypted data, in case the file is not uploaded (e.g. update of the password / description)public SecretBytes getUploadedKeystore()
@NonNull public byte[] getKeyStoreBytes()
byte[] content of the KeyStore.getKeyStoreBytes in class CertificateCredentialsImpl.KeyStoreSourcebyte[] content of the KeyStore.public long getKeyStoreLastModified()
System.currentTimeMillis() comparable timestamp of when the content was last modified.
Used to track refreshing the CertificateCredentialsImpl.keyStore cache for sources that pull
from an external source.getKeyStoreLastModified in class CertificateCredentialsImpl.KeyStoreSourceSystem.currentTimeMillis() comparable timestamp of when the content was last modified.public boolean isSnapshotSource()
true if and only if the source is self contained.isSnapshotSource in class CertificateCredentialsImpl.KeyStoreSourcetrue if and only if the source is self contained.Copyright © 2016–2021. All rights reserved.