net.named_data.jndn
public class GenericSignature extends Signature
Constructor and Description |
---|
GenericSignature()
Create a new GenericSignature with default values.
|
GenericSignature(GenericSignature signature)
Create a new GenericSignature with a copy of the fields in the given
signature object.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Return a new GenericSignature which is a deep copy of this
GenericSignature.
|
long |
getChangeCount()
Get the change count, which is incremented each time this object
(or a child object) is changed.
|
Blob |
getSignature()
Get the signature bytes.
|
Blob |
getSignatureInfoEncoding()
Get the bytes of the entire signature info encoding (including the type
code).
|
int |
getTypeCode()
Get the type code of the signature type.
|
void |
setSignature(Blob signature)
Set the signature bytes to the given value.
|
void |
setSignatureInfoEncoding(Blob signatureInfoEncoding)
Set the bytes of the entire signature info encoding (including the type
code).
|
void |
setSignatureInfoEncoding(Blob signatureInfoEncoding,
int typeCode)
Set the bytes of the entire signature info encoding (including the type
code).
|
public GenericSignature()
public GenericSignature(GenericSignature signature)
signature
- The signature object to copy.public Object clone() throws CloneNotSupportedException
clone
in class Signature
CloneNotSupportedException
public final Blob getSignatureInfoEncoding()
public final void setSignatureInfoEncoding(Blob signatureInfoEncoding, int typeCode)
signatureInfoEncoding
- A Blob with the encoding bytes.typeCode
- the type code of the signature type, or -1 if not known.
(When a GenericSignature is created by wire decoding, it sets the typeCode.)public final void setSignatureInfoEncoding(Blob signatureInfoEncoding)
signatureInfoEncoding
- A Blob with the encoding bytes.public final Blob getSignature()
getSignature
in class Signature
public final void setSignature(Blob signature)
setSignature
in class Signature
signature
- A Blob with the signature bytes.public final int getTypeCode()
public final long getChangeCount()
getChangeCount
in interface ChangeCountable
getChangeCount
in class Signature
Copyright © 2016. All rights reserved.