public class DefaultConfidentialStore extends ConfidentialStore
ConfidentialStore that uses
a directory inside $JENKINS_HOME.
The master key is also stored in this same directory.| Constructor and Description |
|---|
DefaultConfidentialStore() |
DefaultConfidentialStore(File rootDir) |
| Modifier and Type | Method and Description |
|---|---|
protected byte[] |
load(ConfidentialKey key)
Reverse operation of
store(ConfidentialKey, byte[]) |
byte[] |
randomBytes(int size)
Works like
SecureRandom#nextBytes(byte[]). |
protected void |
store(ConfidentialKey key,
byte[] payload)
Persists the payload of
ConfidentialKey to the disk. |
getpublic DefaultConfidentialStore()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic DefaultConfidentialStore(File rootDir) throws IOException, InterruptedException
IOExceptionInterruptedExceptionprotected void store(ConfidentialKey key, byte[] payload) throws IOException
ConfidentialKey to the disk.store in class ConfidentialStoreIOExceptionprotected byte[] load(ConfidentialKey key) throws IOException
store(ConfidentialKey, byte[])load in class ConfidentialStoreIOExceptionpublic byte[] randomBytes(int size)
ConfidentialStoreSecureRandom#nextBytes(byte[]).
This enables implementations to consult other entropy sources, if it's available.randomBytes in class ConfidentialStoreCopyright © 2019. All rights reserved.