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