net.nemerosa.ontrack.model.security.AbstractConfidentialStore Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ontrack-model Show documentation
Show all versions of ontrack-model Show documentation
Ontrack module: ontrack-model
package net.nemerosa.ontrack.model.security;
import net.nemerosa.ontrack.model.security.ConfidentialStore;
import java.security.SecureRandom;
/**
* Provides random bytes.
*/
public abstract class AbstractConfidentialStore implements ConfidentialStore {
private final SecureRandom sr = new SecureRandom();
@Override
public byte[] randomBytes(int size) {
byte[] random = new byte[size];
sr.nextBytes(random);
return random;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy