Package org.moera.lib.node
Class Fingerprints
java.lang.Object
org.moera.lib.node.Fingerprints
The Fingerprints class provides methods to generate a cryptographic fingerprint
for a set of fields using a predefined schema structure.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]
attachment
(byte[] digest) static byte[]
attachment0
(byte[] digest) static byte[]
carte
(String ownerName, InetAddress address, Timestamp beginning, Timestamp deadline, String nodeName, long clientScope, long adminScope, byte[] salt) static byte[]
carte0
(String ownerName, InetAddress address, Timestamp beginning, Timestamp deadline, byte permissions, byte[] salt) static byte[]
carte1
(String ownerName, InetAddress address, Timestamp beginning, Timestamp deadline, String nodeName, byte authCategory, byte[] salt) static byte[]
carte2
(String ownerName, InetAddress address, Timestamp beginning, Timestamp deadline, String nodeName, long clientScope, long adminScope, byte[] salt) static byte[]
comment
(String ownerName, byte[] postingFingerprint, byte[] repliedToFingerprint, byte[] bodySrcHash, String bodySrcFormat, String body, String bodyFormat, Timestamp createdAt, byte permissions, List<byte[]> attachments) static byte[]
comment0
(String ownerName, byte[] postingFingerprint, byte[] repliedToFingerprint, byte[] bodySrcHash, String bodySrcFormat, String body, String bodyFormat, Timestamp createdAt, byte permissions, List<byte[]> attachments) static FieldWithSchema[]
static byte[]
notificationPacket
(String id, String nodeName, String fullName, Timestamp createdAt, String type, String notification) static byte[]
notificationPacket0
(String id, String nodeName, Timestamp createdAt, String type, String notification) static byte[]
notificationPacket1
(String id, String nodeName, String fullName, Timestamp createdAt, String type, String notification) static byte[]
posting
(String receiverName, String ownerName, byte[] bodySrcHash, String bodySrcFormat, String body, String bodyFormat, Timestamp createdAt, byte permissions, List<byte[]> attachments) static byte[]
posting0
(String receiverName, String ownerName, byte[] bodySrcHash, String bodySrcFormat, String body, String bodyFormat, Timestamp createdAt, byte permissions, byte attachments) static byte[]
posting1
(String receiverName, String ownerName, byte[] bodySrcHash, String bodySrcFormat, String body, String bodyFormat, Timestamp createdAt, byte permissions, List<byte[]> attachments) static byte[]
pushRelayMessage
(Timestamp signedAt) static byte[]
pushRelayMessage0
(Timestamp signedAt) static byte[]
pushRelayRegister
(String clientId, String lang, Timestamp signedAt) static byte[]
pushRelayRegister0
(String clientId, String lang, Timestamp signedAt) static byte[]
static byte[]
static byte[]
sheriffOrder
(String sheriffName, String nodeName, String feedName, byte[] entryFingerprint, String category, String reasonCode, String reasonDetails, Timestamp createdAt) static byte[]
sheriffOrder0
(String sheriffName, String nodeName, String feedName, byte[] entryFingerprint, String category, String reasonCode, String reasonDetails, Timestamp createdAt)
-
Constructor Details
-
Fingerprints
public Fingerprints()
-
-
Method Details
-
getSchema
-
attachment
public static byte[] attachment(byte[] digest) -
attachment0
public static byte[] attachment0(byte[] digest) -
carte
public static byte[] carte(String ownerName, InetAddress address, Timestamp beginning, Timestamp deadline, String nodeName, long clientScope, long adminScope, byte[] salt) -
carte2
public static byte[] carte2(String ownerName, InetAddress address, Timestamp beginning, Timestamp deadline, String nodeName, long clientScope, long adminScope, byte[] salt) -
carte1
public static byte[] carte1(String ownerName, InetAddress address, Timestamp beginning, Timestamp deadline, String nodeName, byte authCategory, byte[] salt) -
carte0
public static byte[] carte0(String ownerName, InetAddress address, Timestamp beginning, Timestamp deadline, byte permissions, byte[] salt) -
comment
-
comment0
-
notificationPacket
-
notificationPacket1
-
notificationPacket0
-
posting
-
posting1
-
posting0
-
pushRelayMessage
-
pushRelayMessage0
-
pushRelayRegister
-
pushRelayRegister0
-
reaction
public static byte[] reaction(String ownerName, byte[] entryFingerprint, boolean negative, int emoji) -
reaction0
public static byte[] reaction0(String ownerName, byte[] entryFingerprint, boolean negative, int emoji) -
sheriffOrder
-
sheriffOrder0
-