@InterfaceAudience.Private public final class PerClientRandomNonceGenerator extends Object implements NonceGenerator
Modifier and Type | Field and Description |
---|---|
private long |
clientId |
private static PerClientRandomNonceGenerator |
INST |
CLIENT_NONCES_ENABLED_KEY
Modifier | Constructor and Description |
---|---|
private |
PerClientRandomNonceGenerator() |
Modifier and Type | Method and Description |
---|---|
static PerClientRandomNonceGenerator |
get()
Get the singleton nonce generator.
|
long |
getNonceGroup()
Returns the nonce group (client ID) of this client manager.
|
long |
newNonce()
Returns New nonce.
|
private static final PerClientRandomNonceGenerator INST
private final long clientId
private PerClientRandomNonceGenerator()
public long getNonceGroup()
NonceGenerator
getNonceGroup
in interface NonceGenerator
public long newNonce()
NonceGenerator
newNonce
in interface NonceGenerator
public static PerClientRandomNonceGenerator get()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.