java.lang.Object
swim.security.ReconSignature
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final swim.structure.Valueprotected final swim.structure.Valueprotected final swim.structure.Value -
Constructor Summary
ConstructorsConstructorDescriptionReconSignature(swim.structure.Value payload, swim.structure.Value protectedHeader, swim.structure.Value signatureHeader) -
Method Summary
Modifier and TypeMethodDescriptionstatic ReconSignaturefrom(swim.structure.Value value) swim.structure.Datahash()static ReconSignaturefinal swim.structure.Valuepayload()final swim.structure.Valuestatic ReconSignaturesign(PrivateKey privateKey, swim.structure.Value payload, swim.structure.Value protectedHeader, swim.structure.Value unprotectedHeader) final swim.structure.Valueprotected swim.structure.Datastatic 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)
-
Field Details
-
payload
protected final swim.structure.Value payload -
protectedHeader
protected final swim.structure.Value protectedHeader -
signatureHeader
protected final swim.structure.Value signatureHeader
-
-
Constructor Details
-
ReconSignature
public ReconSignature(swim.structure.Value payload, swim.structure.Value protectedHeader, swim.structure.Value signatureHeader)
-
-
Method Details
-
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
-
verifyRsaSignature
-
toValue
public swim.structure.Value toValue() -
from
-
parse
-
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)
-