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. |
get
public DefaultConfidentialStore() throws IOException, InterruptedException
IOException
InterruptedException
public DefaultConfidentialStore(File rootDir) throws IOException, InterruptedException
IOException
InterruptedException
protected void store(ConfidentialKey key, byte[] payload) throws IOException
ConfidentialKey
to the disk.store
in class ConfidentialStore
IOException
protected byte[] load(ConfidentialKey key) throws IOException
store(ConfidentialKey, byte[])
load
in class ConfidentialStore
IOException
public byte[] randomBytes(int size)
ConfidentialStore
SecureRandom.nextBytes(byte[])
.
This enables implementations to consult other entropy sources, if it's available.randomBytes
in class ConfidentialStore
Copyright © 2004–2022. All rights reserved.