net.nemerosa.ontrack.model.security.AbstractConfidentialStore.kt 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 java.security.SecureRandom
/**
* Provides random bytes.
*/
abstract class AbstractConfidentialStore : ConfidentialStore {
private val sr = SecureRandom()
final override fun randomBytes(size: Int): ByteArray {
val random = ByteArray(size)
sr.nextBytes(random)
return random
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy