net.named_data.jndn
public class HmacWithSha256Signature extends Signature
Constructor and Description |
---|
HmacWithSha256Signature()
Create a new HmacWithSha256Signature with default values.
|
HmacWithSha256Signature(HmacWithSha256Signature signature)
Create a new HmacWithSha256Signature with a copy of the fields in the given
signature object.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Return a new Signature which is a deep copy of this signature.
|
long |
getChangeCount()
Get the change count, which is incremented each time this object
(or a child object) is changed.
|
KeyLocator |
getKeyLocator() |
Blob |
getSignature()
Get the signature bytes.
|
void |
setKeyLocator(KeyLocator keyLocator) |
void |
setSignature(Blob signature)
Set the signature bytes to the given value.
|
public HmacWithSha256Signature()
public HmacWithSha256Signature(HmacWithSha256Signature signature)
signature
- The signature object to copy.public Object clone() throws CloneNotSupportedException
clone
in class Signature
CloneNotSupportedException
public final Blob getSignature()
getSignature
in class Signature
public final KeyLocator getKeyLocator()
public final void setSignature(Blob signature)
setSignature
in class Signature
signature
- A Blob with the signature bytes.public final void setKeyLocator(KeyLocator keyLocator)
public final long getChangeCount()
getChangeCount
in interface ChangeCountable
getChangeCount
in class Signature
Copyright © 2016. All rights reserved.