public abstract class Signature extends Object implements Serializable, Comparable<Signature>
Modifier | Constructor and Description |
---|---|
protected |
Signature(XdiAttribute xdiAttribute) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Signature other) |
boolean |
equals(Object object) |
static Signature |
fromXdiAttribute(XdiAttribute xdiAttribute)
Factory method that creates an XDI signature bound to a given XDI attribute.
|
ContextNode |
getBaseContextNode() |
ContextNode |
getContextNode()
Returns the underlying context node to which this XDI signature is bound.
|
String |
getDigestAlgorithm() |
Integer |
getDigestVersion() |
String |
getKeyAlgorithm() |
Integer |
getKeyLength() |
byte[] |
getSignatureValue()
Get the value
|
XdiAttribute |
getXdiAttribute()
Returns the underlying XDI attribute to which this XDI signature is bound.
|
int |
hashCode() |
static boolean |
isValid(XdiAttribute xdiAttribute)
Checks if an XDI attribute is a valid XDI signature.
|
void |
setSignatureValue(byte[] signatureValue)
Set the value
|
String |
toString() |
protected Signature(XdiAttribute xdiAttribute)
public static boolean isValid(XdiAttribute xdiAttribute)
xdiAttribute
- The XDI attribute to check.public static Signature fromXdiAttribute(XdiAttribute xdiAttribute)
xdiAttribute
- The XDI signature that is an XDI signature.public XdiAttribute getXdiAttribute()
public ContextNode getContextNode()
public ContextNode getBaseContextNode()
public String getDigestAlgorithm()
public Integer getDigestVersion()
public String getKeyAlgorithm()
public Integer getKeyLength()
public byte[] getSignatureValue()
public void setSignatureValue(byte[] signatureValue)
public int compareTo(Signature other)
compareTo
in interface Comparable<Signature>
Copyright © 2017. All rights reserved.