java.io.Closeable, java.io.Serializable, java.lang.AutoCloseable, Configurable@Private public class OsSecureRandom extends java.util.Random implements java.io.Closeable, Configurable
| Modifier and Type | Field | Description |
|---|---|---|
static org.slf4j.Logger |
LOG |
| Constructor | Description |
|---|---|
OsSecureRandom() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
|
protected void |
finalize() |
|
Configuration |
getConf() |
Return the configuration used by this object.
|
boolean |
isClosed() |
|
protected int |
next(int nbits) |
|
void |
nextBytes(byte[] bytes) |
|
void |
setConf(Configuration conf) |
Set the configuration to be used by this object.
|
@VisibleForTesting public boolean isClosed()
public void setConf(Configuration conf)
ConfigurablesetConf in interface Configurableconf - configuration to be usedpublic Configuration getConf()
ConfigurablegetConf in interface Configurablepublic void nextBytes(byte[] bytes)
nextBytes in class java.util.Randomprotected int next(int nbits)
next in class java.util.Randompublic void close()
close in interface java.lang.AutoCloseableclose in interface java.io.Closeableprotected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.ThrowableCopyright © 2008–2025 Apache Software Foundation. All rights reserved.