| Package | Description |
|---|---|
| net.named_data.jndn.encrypt | |
| net.named_data.jndn.security |
| Constructor and Description |
|---|
EncryptorV2(Name accessPrefix,
Name ckPrefix,
SigningInfo ckDataSigningInfo,
EncryptError.OnError onError,
Validator validator,
KeyChain keyChain,
Face face)
Create an EncryptorV2 with the given parameters.
|
| Modifier and Type | Method and Description |
|---|---|
SigningInfo |
SigningInfo.setDigestAlgorithm(DigestAlgorithm digestAlgorithm)
Set the digest algorithm for public key operations.
|
SigningInfo |
SigningInfo.setPibIdentity(PibIdentity identity)
Set this to type SignerType.ID according to the given PibIdentity.
|
SigningInfo |
SigningInfo.setPibKey(PibKey key)
Set this to type SignerType.KEY according to the given PibKey.
|
SigningInfo |
SigningInfo.setSha256Signing()
Set this to type SignerType.SHA256, and set the digest algorithm to
DigestAlgorithm.SHA256.
|
SigningInfo |
SigningInfo.setSigningCertificateName(Name certificateName)
Set this to type SignerType.CERT and a certificate with name
certificateName.
|
SigningInfo |
SigningInfo.setSigningIdentity(Name identityName)
Set this to type SignerType.ID and an identity with name identityName.
|
SigningInfo |
SigningInfo.setSigningKeyName(Name keyName)
Set this to type SignerType.KEY and a key with name keyName.
|
SigningInfo |
SigningInfo.setValidityPeriod(ValidityPeriod validityPeriod)
Set the validity period for the signature info.
|
| Modifier and Type | Method and Description |
|---|---|
Interest |
CommandInterestSigner.makeCommandInterest(Name name,
SigningInfo params)
Call the main makeCommandInterest where wireFormat is
WireFormat.getDefaultWireFormat() .
|
Interest |
CommandInterestSigner.makeCommandInterest(Name name,
SigningInfo params,
WireFormat wireFormat)
Append the timestamp and nonce name components to the supplied name, create
an Interest object and signs it with the KeyChain given to the constructor.
|
Blob |
KeyChain.sign(ByteBuffer buffer,
SigningInfo params)
Sign the byte buffer according to the supplied signing parameters.
|
void |
KeyChain.sign(Data data,
SigningInfo params)
Wire encode the Data object, sign it according to the supplied signing
parameters, and set its signature.
|
void |
KeyChain.sign(Data data,
SigningInfo params,
WireFormat wireFormat)
Wire encode the Data object, sign it according to the supplied signing
parameters, and set its signature.
|
void |
KeyChain.sign(Interest interest,
SigningInfo params)
Sign the Interest according to the supplied signing parameters.
|
void |
KeyChain.sign(Interest interest,
SigningInfo params,
WireFormat wireFormat)
Sign the Interest according to the supplied signing parameters.
|
| Constructor and Description |
|---|
SigningInfo(SigningInfo signingInfo)
Create a SigningInfo as a copy of the given signingInfo.
|
Copyright © 2019. All rights reserved.