|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.logi.crypto.Crypto
org.logi.crypto.sign.Signature
This class stores a digital signature. It is created with a SignatureKey from a Fingerprint and can later be used to verify that Fignerprint with the same symmetric key or the other asymmetric key from the pair.
Fingerprint
,
SignatureKey
Field Summary |
Fields inherited from class org.logi.crypto.Crypto |
BIT, cdsPath, EMPTY_ARRAY, FOUR, keySource, NIBBLE, ONE, primeCertainty, random, TWO, ZERO |
Constructor Summary | |
Signature(byte[] s,
java.lang.String algorithm,
Fingerprint k)
Create a new Signature object. |
Method Summary | |
byte[] |
getBytes()
Return the bytes from this signature. |
java.lang.String |
getFingerprintAlgorithm()
Return the name of the algorithm used to fingerprint the data before signing. |
Fingerprint |
getKeyPrint()
Return the fingerprint of the key used to verify this signature. |
static Signature |
parseCDS(java.lang.String arg)
If "Signature( key )" is a valid CDS for a Signature, then Signature.parseCDS(key) will return the described Signature object. |
java.lang.String |
toString()
Return a CDS for this object. |
Methods inherited from class org.logi.crypto.Crypto |
binString, binString, equal, equalRelaxed, equalSub, fromHexNibble, fromHexString, fromString, fromString, hexString, hexString, hexString, hexString, hexString, initRandom, initRandom, makeClass, makeInt, makeLong, makeSessionKey, pastSpace, pickBits, pickBits, readBlock, readInt, writeBytes, writeBytes, writeInt |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Signature(byte[] s, java.lang.String algorithm, Fingerprint k)
s
which was generated from a fingerprint using the specified
algorithm
. It can be verified with the key with fingerprint
k
.
Method Detail |
public static Signature parseCDS(java.lang.String arg) throws InvalidCDSException
A valid CDS can be created by calling the Signature.toString() method.
InvalidCDSException
- if the CDS is malformed.Crypto.fromString(String)
public java.lang.String getFingerprintAlgorithm()
public byte[] getBytes()
public Fingerprint getKeyPrint()
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |