- java.lang.Object
-
- swim.security.ReconSignature
-
public class ReconSignature extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected Value
payload
protected Value
protectedHeader
protected Value
signatureHeader
-
Constructor Summary
Constructors Constructor Description ReconSignature(Value payload, Value protectedHeader, Value signatureHeader)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ReconSignature
from(Value value)
Data
hash()
static ReconSignature
parse(String recon)
Value
payload()
Value
protectedHeader()
static ReconSignature
sign(PrivateKey privateKey, Value payload, Value protectedHeader, Value unprotectedHeader)
Value
signatureHeader()
protected Data
signingInput()
static ReconSignature
signRsa(PrivateKey privateKey, Value payload, Value protectedHeader, Value unprotectedHeader)
static ReconSignature
signRsa(Signature signature, PrivateKey privateKey, Value payload, Value protectedHeader, Value unprotectedHeader)
Value
toValue()
boolean
verifyRsaSignature(Signature signature, PublicKey publicKey)
boolean
verifySignature(PublicKey publicKey)
-
-
-
Method Detail
-
payload
public final Value payload()
-
protectedHeader
public final Value protectedHeader()
-
signatureHeader
public final Value signatureHeader()
-
hash
public Data hash()
-
signingInput
protected Data signingInput()
-
verifySignature
public boolean verifySignature(PublicKey publicKey)
-
toValue
public Value toValue()
-
from
public static ReconSignature from(Value value)
-
parse
public static ReconSignature parse(String recon)
-
signRsa
public static ReconSignature signRsa(Signature signature, PrivateKey privateKey, Value payload, Value protectedHeader, Value unprotectedHeader)
-
signRsa
public static ReconSignature signRsa(PrivateKey privateKey, Value payload, Value protectedHeader, Value unprotectedHeader)
-
sign
public static ReconSignature sign(PrivateKey privateKey, Value payload, Value protectedHeader, Value unprotectedHeader)
-
-