public class RandomSecretKeyBuilder extends DefaultSecretKeyBuilder
| Modifier and Type | Field and Description |
|---|---|
protected Provider |
provider |
protected SecureRandom |
random |
BIT_LENGTH, JCA_NAME| Constructor and Description |
|---|
RandomSecretKeyBuilder(String jcaName,
int bitLength) |
| Modifier and Type | Method and Description |
|---|---|
SecretKey |
build() |
B |
provider(Provider provider) |
B |
random(SecureRandom random) |
protected B |
self() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprovider, randomprotected Provider provider
protected SecureRandom random
public RandomSecretKeyBuilder(String jcaName, int bitLength)
public SecretKey build()
build in interface Builder<SecretKey>build in class DefaultSecretKeyBuilderprotected final B self()
public B provider(Provider provider)
provider in interface SecurityBuilder<T,B extends SecurityBuilder<T,B>>public B random(SecureRandom random)
random in interface SecurityBuilder<T,B extends SecurityBuilder<T,B>>Copyright © 2014–2024 jsonwebtoken.io. All rights reserved.