| Modifier and Type | Method and Description |
|---|---|
SecretBytes |
AesCtrHmacAeadKey.getAesKeyBytes()
Returns the underlying AES key bytes.
|
SecretBytes |
AesCtrHmacAeadKey.getHmacKeyBytes()
Returns the underlying HMAC key bytes.
|
SecretBytes |
XAesGcmKey.getKeyBytes() |
SecretBytes |
XChaCha20Poly1305Key.getKeyBytes() |
SecretBytes |
ChaCha20Poly1305Key.getKeyBytes() |
SecretBytes |
AesGcmSivKey.getKeyBytes()
Returns the underlying key bytes.
|
SecretBytes |
AesEaxKey.getKeyBytes()
Returns the underlying key bytes.
|
SecretBytes |
AesGcmKey.getKeyBytes()
Returns the underlying key bytes.
|
| Modifier and Type | Method and Description |
|---|---|
static ChaCha20Poly1305Key |
ChaCha20Poly1305Key.create(ChaCha20Poly1305Parameters.Variant variant,
SecretBytes secretBytes,
Integer idRequirement) |
static XChaCha20Poly1305Key |
XChaCha20Poly1305Key.create(SecretBytes secretBytes) |
static ChaCha20Poly1305Key |
ChaCha20Poly1305Key.create(SecretBytes secretBytes) |
static XAesGcmKey |
XAesGcmKey.create(XAesGcmParameters parameters,
SecretBytes secretBytes,
Integer idRequirement) |
static XChaCha20Poly1305Key |
XChaCha20Poly1305Key.create(XChaCha20Poly1305Parameters.Variant variant,
SecretBytes secretBytes,
Integer idRequirement) |
AesCtrHmacAeadKey.Builder |
AesCtrHmacAeadKey.Builder.setAesKeyBytes(SecretBytes aesKeyBytes) |
AesCtrHmacAeadKey.Builder |
AesCtrHmacAeadKey.Builder.setHmacKeyBytes(SecretBytes hmacKeyBytes) |
AesGcmSivKey.Builder |
AesGcmSivKey.Builder.setKeyBytes(SecretBytes keyBytes) |
AesEaxKey.Builder |
AesEaxKey.Builder.setKeyBytes(SecretBytes keyBytes) |
AesGcmKey.Builder |
AesGcmKey.Builder.setKeyBytes(SecretBytes keyBytes) |
| Modifier and Type | Method and Description |
|---|---|
SecretBytes |
AesSivKey.getKeyBytes()
Returns the underlying key bytes.
|
| Modifier and Type | Method and Description |
|---|---|
AesSivKey.Builder |
AesSivKey.Builder.setKeyBytes(SecretBytes keyBytes) |
| Modifier and Type | Method and Description |
|---|---|
SecretBytes |
HpkePrivateKey.getPrivateKeyBytes() |
SecretBytes |
EciesPrivateKey.getX25519PrivateKeyBytes() |
| Modifier and Type | Method and Description |
|---|---|
static HpkePrivateKey |
HpkePrivateKey.create(HpkePublicKey publicKey,
SecretBytes privateKeyBytes)
Creates a new HPKE private key.
|
static EciesPrivateKey |
EciesPrivateKey.createForCurveX25519(EciesPublicKey publicKey,
SecretBytes x25519PrivateKeyBytes)
Creates a new ECIES private key using Curve25519.
|
| Modifier and Type | Method and Description |
|---|---|
static SecretBytes |
Util.readIntoSecretBytes(InputStream input,
int length,
SecretKeyAccess access)
Reads
length number of bytes from the input stream and returns it in a SecretBytes object. |
| Modifier and Type | Method and Description |
|---|---|
SecretBytes |
JwtHmacKey.getKeyBytes() |
| Modifier and Type | Method and Description |
|---|---|
JwtHmacKey.Builder |
JwtHmacKey.Builder.setKeyBytes(SecretBytes keyBytes) |
| Modifier and Type | Method and Description |
|---|---|
SecretBytes |
AesCmacKey.getAesKey()
Returns the underlying AES key.
|
SecretBytes |
HmacKey.getKeyBytes()
Returns the underlying key bytes.
|
| Modifier and Type | Method and Description |
|---|---|
AesCmacKey.Builder |
AesCmacKey.Builder.setAesKeyBytes(SecretBytes aesKeyBytes) |
HmacKey.Builder |
HmacKey.Builder.setKeyBytes(SecretBytes keyBytes) |
| Modifier and Type | Method and Description |
|---|---|
SecretBytes |
HkdfPrfKey.getKeyBytes() |
SecretBytes |
AesCmacPrfKey.getKeyBytes() |
SecretBytes |
HmacPrfKey.getKeyBytes() |
| Modifier and Type | Method and Description |
|---|---|
static AesCmacPrfKey |
AesCmacPrfKey.create(AesCmacPrfParameters parameters,
SecretBytes keyBytes) |
HkdfPrfKey.Builder |
HkdfPrfKey.Builder.setKeyBytes(SecretBytes keyBytes) |
HmacPrfKey.Builder |
HmacPrfKey.Builder.setKeyBytes(SecretBytes keyBytes) |
| Modifier and Type | Method and Description |
|---|---|
SecretBytes |
Ed25519PrivateKey.getPrivateKeyBytes() |
| Modifier and Type | Method and Description |
|---|---|
static Ed25519PrivateKey |
Ed25519PrivateKey.create(Ed25519PublicKey publicKey,
SecretBytes privateKeyBytes) |
| Modifier and Type | Method and Description |
|---|---|
SecretBytes |
AesGcmHkdfStreamingKey.getInitialKeyMaterial() |
SecretBytes |
AesCtrHmacStreamingKey.getInitialKeyMaterial() |
| Modifier and Type | Method and Description |
|---|---|
static AesCtrHmacStreamingKey |
AesCtrHmacStreamingKey.create(AesCtrHmacStreamingParameters parameters,
SecretBytes initialKeymaterial) |
static AesGcmHkdfStreamingKey |
AesGcmHkdfStreamingKey.create(AesGcmHkdfStreamingParameters parameters,
SecretBytes initialKeymaterial) |
| Modifier and Type | Method and Description |
|---|---|
static SecretBytes |
SecretBytes.copyFrom(byte[] value,
SecretKeyAccess access)
Creates a new SecretBytes with the contents given in
value. |
static SecretBytes |
SecretBytes.randomBytes(int length)
Creates a new SecretBytes with bytes chosen uniformly at random of length
length. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
SecretBytes.equalsSecretBytes(SecretBytes other)
Returns true if the
other byte array has the same bytes, in time depending only on the
length of both SecretBytes objects. |