
public abstract class Signature<SKEY extends Key,VKEY extends Key> extends Object implements Serializable, Comparable<Signature<SKEY,VKEY>>
| Modifier | Constructor and Description |
|---|---|
protected |
Signature(XdiAttribute xdiAttribute) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Signature<SKEY,VKEY> other) |
boolean |
equals(Object object) |
static Signature<? extends Key,? extends Key> |
fromXdiAttribute(XdiAttribute xdiAttribute)
Factory method that creates an XDI signature bound to a given XDI attribute.
|
abstract String |
getAlgorithm() |
ContextNode |
getBaseContextNode() |
ContextNode |
getContextNode()
Returns the underlying context node to which this XDI signature is bound.
|
String |
getDigestAlgorithm() |
Integer |
getDigestLength() |
String |
getKeyAlgorithm() |
Integer |
getKeyLength() |
String |
getValue()
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 |
setValue(String value)
Set the value
|
abstract void |
sign(SKEY key)
Create the signature value.
|
String |
toString() |
abstract boolean |
validate(VKEY key)
Validate the signature value.
|
protected Signature(XdiAttribute xdiAttribute)
public static boolean isValid(XdiAttribute xdiAttribute)
xdiAttribute - The XDI attribute to check.public static Signature<? extends Key,? extends Key> 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 getDigestLength()
public String getKeyAlgorithm()
public Integer getKeyLength()
public abstract String getAlgorithm()
public String getValue()
public void setValue(String value)
public abstract void sign(SKEY key) throws GeneralSecurityException
GeneralSecurityExceptionpublic abstract boolean validate(VKEY key) throws GeneralSecurityException
GeneralSecurityExceptionCopyright © 2015. All Rights Reserved.