- java.lang.Object
-
- swim.security.ReconSignature
-
public class ReconSignature extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected swim.structure.Valuepayloadprotected swim.structure.ValueprotectedHeaderprotected swim.structure.ValuesignatureHeader
-
Constructor Summary
Constructors Constructor Description ReconSignature(swim.structure.Value payload, swim.structure.Value protectedHeader, swim.structure.Value signatureHeader)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ReconSignaturefrom(swim.structure.Value value)swim.structure.Datahash()static ReconSignatureparse(String recon)swim.structure.Valuepayload()swim.structure.ValueprotectedHeader()static ReconSignaturesign(PrivateKey privateKey, swim.structure.Value payload, swim.structure.Value protectedHeader, swim.structure.Value unprotectedHeader)swim.structure.ValuesignatureHeader()protected swim.structure.DatasigningInput()static ReconSignaturesignRsa(PrivateKey privateKey, swim.structure.Value payload, swim.structure.Value protectedHeader, swim.structure.Value unprotectedHeader)static ReconSignaturesignRsa(Signature signature, PrivateKey privateKey, swim.structure.Value payload, swim.structure.Value protectedHeader, swim.structure.Value unprotectedHeader)swim.structure.ValuetoValue()booleanverifyRsaSignature(Signature signature, PublicKey publicKey)booleanverifySignature(PublicKey publicKey)
-
-
-
Method Detail
-
payload
public final swim.structure.Value payload()
-
protectedHeader
public final swim.structure.Value protectedHeader()
-
signatureHeader
public final swim.structure.Value signatureHeader()
-
hash
public swim.structure.Data hash()
-
signingInput
protected swim.structure.Data signingInput()
-
verifySignature
public boolean verifySignature(PublicKey publicKey)
-
toValue
public swim.structure.Value toValue()
-
from
public static ReconSignature from(swim.structure.Value value)
-
parse
public static ReconSignature parse(String recon)
-
signRsa
public static ReconSignature signRsa(Signature signature, PrivateKey privateKey, swim.structure.Value payload, swim.structure.Value protectedHeader, swim.structure.Value unprotectedHeader)
-
signRsa
public static ReconSignature signRsa(PrivateKey privateKey, swim.structure.Value payload, swim.structure.Value protectedHeader, swim.structure.Value unprotectedHeader)
-
sign
public static ReconSignature sign(PrivateKey privateKey, swim.structure.Value payload, swim.structure.Value protectedHeader, swim.structure.Value unprotectedHeader)
-
-