| Package | Description |
|---|---|
| net.named_data.jndn.security | |
| net.named_data.jndn.security.certificate | |
| net.named_data.jndn.security.identity | |
| net.named_data.jndn.security.tpm |
| Modifier and Type | Method and Description |
|---|---|
DigestAlgorithm |
SigningInfo.getDigestAlgorithm()
Get the digest algorithm for public key operations.
|
static DigestAlgorithm |
DigestAlgorithm.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DigestAlgorithm[] |
DigestAlgorithm.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
SigningInfo |
SigningInfo.setDigestAlgorithm(DigestAlgorithm digestAlgorithm)
Set the digest algorithm for public key operations.
|
static boolean |
VerificationHelpers.verifyDataDigest(Data data,
DigestAlgorithm digestAlgorithm)
Verify the Data packet using the digest algorithm.
|
static boolean |
VerificationHelpers.verifyDataDigest(Data data,
DigestAlgorithm digestAlgorithm,
WireFormat wireFormat)
Verify the Data packet using the digest algorithm.
|
static boolean |
VerificationHelpers.verifyDataSignature(Data data,
Blob publicKeyDer,
DigestAlgorithm digestAlgorithm)
Verify the Data packet using the public key.
|
static boolean |
VerificationHelpers.verifyDataSignature(Data data,
Blob publicKeyDer,
DigestAlgorithm digestAlgorithm,
WireFormat wireFormat)
Verify the Data packet using the public key.
|
static boolean |
VerificationHelpers.verifyDataSignature(Data data,
CertificateV2 certificate,
DigestAlgorithm digestAlgorithm)
Verify the Data packet using the public key in the certificate.
|
static boolean |
VerificationHelpers.verifyDataSignature(Data data,
CertificateV2 certificate,
DigestAlgorithm digestAlgorithm,
WireFormat wireFormat)
Verify the Data packet using the public key in the certificate.
|
static boolean |
VerificationHelpers.verifyDataSignature(Data data,
PublicKey publicKey,
DigestAlgorithm digestAlgorithm)
Verify the Data packet using the public key.
|
static boolean |
VerificationHelpers.verifyDataSignature(Data data,
PublicKey publicKey,
DigestAlgorithm digestAlgorithm,
WireFormat wireFormat)
Verify the Data packet using the public key.
|
static boolean |
VerificationHelpers.verifyDigest(Blob buffer,
Blob digest,
DigestAlgorithm digestAlgorithm)
Verify the buffer against the digest using the digest algorithm.
|
static boolean |
VerificationHelpers.verifyDigest(ByteBuffer buffer,
Blob digest,
DigestAlgorithm digestAlgorithm)
Verify the buffer against the digest using the digest algorithm.
|
static boolean |
VerificationHelpers.verifyDigest(ByteBuffer buffer,
byte[] digest,
DigestAlgorithm digestAlgorithm)
Verify the buffer against the digest using the digest algorithm.
|
static boolean |
VerificationHelpers.verifyInterestDigest(Interest interest,
DigestAlgorithm digestAlgorithm)
Verify the Interest packet using the digest algorithm, where the last two
name components are the SignatureInfo and signature bytes.
|
static boolean |
VerificationHelpers.verifyInterestDigest(Interest interest,
DigestAlgorithm digestAlgorithm,
WireFormat wireFormat)
Verify the Interest packet using the digest algorithm, where the last two
name components are the SignatureInfo and signature bytes.
|
static boolean |
VerificationHelpers.verifyInterestSignature(Interest interest,
Blob publicKeyDer,
DigestAlgorithm digestAlgorithm)
Verify the Interest packet using the public key, where the last two name
components are the SignatureInfo and signature bytes.
|
static boolean |
VerificationHelpers.verifyInterestSignature(Interest interest,
Blob publicKeyDer,
DigestAlgorithm digestAlgorithm,
WireFormat wireFormat)
Verify the Interest packet using the public key, where the last two name
components are the SignatureInfo and signature bytes.
|
static boolean |
VerificationHelpers.verifyInterestSignature(Interest interest,
CertificateV2 certificate,
DigestAlgorithm digestAlgorithm)
Verify the Interest packet using the public key in the certificate, where
the last two name components are the SignatureInfo and signature bytes.
|
static boolean |
VerificationHelpers.verifyInterestSignature(Interest interest,
CertificateV2 certificate,
DigestAlgorithm digestAlgorithm,
WireFormat wireFormat)
Verify the Interest packet using the public key in the certificate, where
the last two name components are the SignatureInfo and signature bytes.
|
static boolean |
VerificationHelpers.verifyInterestSignature(Interest interest,
PublicKey publicKey,
DigestAlgorithm digestAlgorithm)
Verify the Interest packet using the public key, where the last two name
components are the SignatureInfo and signature bytes.
|
static boolean |
VerificationHelpers.verifyInterestSignature(Interest interest,
PublicKey publicKey,
DigestAlgorithm digestAlgorithm,
WireFormat wireFormat)
Verify the Interest packet using the public key, where the last two name
components are the SignatureInfo and signature bytes.
|
static boolean |
VerificationHelpers.verifySignature(Blob buffer,
Blob signature,
Blob publicKeyDer,
DigestAlgorithm digestAlgorithm)
Verify the buffer against the signature using the encoded public key.
|
static boolean |
VerificationHelpers.verifySignature(Blob buffer,
Blob signature,
PublicKey publicKey,
DigestAlgorithm digestAlgorithm)
Verify the buffer against the signature using the public key.
|
static boolean |
VerificationHelpers.verifySignature(ByteBuffer buffer,
Blob signature,
Blob publicKeyDer,
DigestAlgorithm digestAlgorithm)
Verify the buffer against the signature using the encoded public key.
|
static boolean |
VerificationHelpers.verifySignature(ByteBuffer buffer,
Blob signature,
PublicKey publicKey,
DigestAlgorithm digestAlgorithm)
Verify the buffer against the signature using the public key.
|
static boolean |
VerificationHelpers.verifySignature(ByteBuffer buffer,
byte[] signature,
Blob publicKeyDer,
DigestAlgorithm digestAlgorithm)
Verify the buffer against the signature using the encoded public key.
|
static boolean |
VerificationHelpers.verifySignature(ByteBuffer buffer,
byte[] signature,
PublicKey publicKey,
DigestAlgorithm digestAlgorithm)
Verify the buffer against the signature using the public key.
|
| Constructor and Description |
|---|
SafeBag(Name keyName,
Blob privateKeyBag,
Blob publicKeyEncoding,
ByteBuffer password,
DigestAlgorithm digestAlgorithm)
Create a SafeBag with given private key and a new self-signed certificate
for the given public key.
|
SafeBag(Name keyName,
Blob privateKeyBag,
Blob publicKeyEncoding,
ByteBuffer password,
DigestAlgorithm digestAlgorithm,
WireFormat wireFormat)
Create a SafeBag with given private key and a new self-signed certificate
for the given public key.
|
| Modifier and Type | Method and Description |
|---|---|
Blob |
PublicKey.getDigest(DigestAlgorithm digestAlgorithm) |
| Modifier and Type | Method and Description |
|---|---|
abstract Blob |
PrivateKeyStorage.sign(ByteBuffer data,
Name keyName,
DigestAlgorithm digestAlgorithm)
Fetch the private key for keyName and sign the data, returning a signature
Blob.
|
Blob |
MemoryPrivateKeyStorage.sign(ByteBuffer data,
Name keyName,
DigestAlgorithm digestAlgorithm)
Fetch the private key for keyName and sign the data, returning a signature
Blob.
|
Blob |
FilePrivateKeyStorage.sign(ByteBuffer data,
Name keyName,
DigestAlgorithm digestAlgorithm)
Fetch the private key for keyName and sign the data, returning a signature
Blob.
|
| Modifier and Type | Method and Description |
|---|---|
protected Blob |
TpmKeyHandleMemory.doSign(DigestAlgorithm digestAlgorithm,
ByteBuffer data) |
protected abstract Blob |
TpmKeyHandle.doSign(DigestAlgorithm digestAlgorithm,
ByteBuffer data) |
Blob |
TpmPrivateKey.sign(ByteBuffer data,
DigestAlgorithm digestAlgorithm)
Sign the data with this private key, returning a signature Blob.
|
Blob |
Tpm.sign(ByteBuffer data,
Name keyName,
DigestAlgorithm digestAlgorithm)
Compute a digital signature from the byte buffer using the key with name
keyName.
|
Blob |
TpmKeyHandle.sign(DigestAlgorithm digestAlgorithm,
ByteBuffer data)
Compute a digital signature from the byte buffer using this key with
digestAlgorithm.
|
Copyright © 2019. All rights reserved.