Uses of Class
org.drasyl.identity.CompressedPublicKey
-
Packages that use CompressedPublicKey Package Description org.drasyl Core API that includes theDrasylNode
andDrasylConfig
.org.drasyl.behaviour DescribesDrasylNode
s as finite state machines.org.drasyl.event Contains events that inform the application about various states of the drasyl node, incoming communication, or connection type changes.org.drasyl.identity Contains classes to manage theIdentity
of the drasyl node.org.drasyl.localhost Uses the file system to discover other drasyl nodes running on the local computer.org.drasyl.peer Package contains classes that are used for communicating with other peers.org.drasyl.pipeline.handler Contains default implementations for some basic handlers.org.drasyl.pipeline.message Contains all message types that drasyl uses to configure the overlay network and transfer application messages.org.drasyl.pipeline.serialization Package contains classes that are used for serialisation of message to byte arrays and vice vera.org.drasyl.remote.handler Handlers used to communicate with remote nodes.org.drasyl.remote.protocol The protocol used for communication with remote nodes. -
-
Uses of CompressedPublicKey in org.drasyl
Methods in org.drasyl that return CompressedPublicKey Modifier and Type Method Description CompressedPublicKey
DrasylConfig. getIdentityPublicKey()
static CompressedPublicKey
DrasylConfig. getPublicKey(com.typesafe.config.Config config, String path)
Gets theCompressedPublicKey
at the given path.Methods in org.drasyl that return types with arguments of type CompressedPublicKey Modifier and Type Method Description Map<CompressedPublicKey,InetSocketAddressWrapper>
DrasylConfig. getRemoteStaticRoutes()
static Map<CompressedPublicKey,InetSocketAddressWrapper>
DrasylConfig. getStaticRoutes(com.typesafe.config.Config config, String path)
Methods in org.drasyl with parameters of type CompressedPublicKey Modifier and Type Method Description DrasylConfig.Builder
DrasylConfig.Builder. identityPublicKey(CompressedPublicKey identityPublicKey)
CompletableFuture<Void>
DrasylNode. send(CompressedPublicKey recipient, Object payload)
Sends the content ofpayload
to the identityrecipient
.Method parameters in org.drasyl with type arguments of type CompressedPublicKey Modifier and Type Method Description DrasylConfig.Builder
DrasylConfig.Builder. remoteStaticRoutes(Map<CompressedPublicKey,InetSocketAddressWrapper> remoteStaticRoutes)
Constructors in org.drasyl with parameters of type CompressedPublicKey Constructor Description Builder(int networkId, ProofOfWork identityProofOfWork, CompressedPublicKey identityPublicKey, CompressedPrivateKey identityPrivateKey, Path identityPath, boolean intraVmDiscoveryEnabled, InetAddress remoteBindHost, boolean remoteEnabled, int remoteBindPort, Duration remotePingInterval, Duration remotePingTimeout, Duration remotePingCommunicationTimeout, Duration remoteUniteMinInterval, int remotePingMaxPeers, Set<Endpoint> remoteEndpoints, boolean remoteExposeEnabled, boolean remoteSuperPeerEnabled, Set<Endpoint> remoteSuperPeerEndpoints, Map<CompressedPublicKey,InetSocketAddressWrapper> remoteStaticRoutes, int remoteMessageMtu, int remoteMessageMaxContentLength, Duration remoteMessageComposedMessageTransferTimeout, byte remoteMessageHopLimit, boolean remoteMessageArmEnabled, boolean remoteLocalHostDiscoveryEnabled, Path remoteLocalHostDiscoveryPath, Duration remoteLocalHostDiscoveryLeaseTime, boolean monitoringEnabled, String monitoringHostTag, URI monitoringInfluxUri, String monitoringInfluxUser, String monitoringInfluxPassword, String monitoringInfluxDatabase, Duration monitoringInfluxReportingFrequency, Set<DrasylPlugin> pluginSet, Map<String,Serializer> serializationSerializers, Map<Class<?>,String> serializationsBindingsInbound, Map<Class<?>,String> serializationsBindingsOutbound)
Constructor parameters in org.drasyl with type arguments of type CompressedPublicKey Constructor Description Builder(int networkId, ProofOfWork identityProofOfWork, CompressedPublicKey identityPublicKey, CompressedPrivateKey identityPrivateKey, Path identityPath, boolean intraVmDiscoveryEnabled, InetAddress remoteBindHost, boolean remoteEnabled, int remoteBindPort, Duration remotePingInterval, Duration remotePingTimeout, Duration remotePingCommunicationTimeout, Duration remoteUniteMinInterval, int remotePingMaxPeers, Set<Endpoint> remoteEndpoints, boolean remoteExposeEnabled, boolean remoteSuperPeerEnabled, Set<Endpoint> remoteSuperPeerEndpoints, Map<CompressedPublicKey,InetSocketAddressWrapper> remoteStaticRoutes, int remoteMessageMtu, int remoteMessageMaxContentLength, Duration remoteMessageComposedMessageTransferTimeout, byte remoteMessageHopLimit, boolean remoteMessageArmEnabled, boolean remoteLocalHostDiscoveryEnabled, Path remoteLocalHostDiscoveryPath, Duration remoteLocalHostDiscoveryLeaseTime, boolean monitoringEnabled, String monitoringHostTag, URI monitoringInfluxUri, String monitoringInfluxUser, String monitoringInfluxPassword, String monitoringInfluxDatabase, Duration monitoringInfluxReportingFrequency, Set<DrasylPlugin> pluginSet, Map<String,Serializer> serializationSerializers, Map<Class<?>,String> serializationsBindingsInbound, Map<Class<?>,String> serializationsBindingsOutbound)
-
Uses of CompressedPublicKey in org.drasyl.behaviour
Methods in org.drasyl.behaviour with parameters of type CompressedPublicKey Modifier and Type Method Description <M> Behavior.BehaviorBuilder
Behavior.BehaviorBuilder. onMessageEquals(CompressedPublicKey sender, M payload, Supplier<Behavior> handler)
Add a new case to the event handling matching events of type with equalMessageEvent.getPayload()
.Method parameters in org.drasyl.behaviour with type arguments of type CompressedPublicKey Modifier and Type Method Description <M> Behavior.BehaviorBuilder
Behavior.BehaviorBuilder. onAnyMessage(BiFunction<CompressedPublicKey,M,Behavior> handler)
Adds a new case to the event handling matching any .<M> Behavior.BehaviorBuilder
Behavior.BehaviorBuilder. onMessage(Class<M> messageType, BiFunction<CompressedPublicKey,M,Behavior> handler)
Add a new case to the event matching matching events of type withMessageEvent.getPayload()
matchingmessageType
.<M> Behavior.BehaviorBuilder
Behavior.BehaviorBuilder. onMessage(Class<M> messageType, BiPredicate<CompressedPublicKey,M> test, BiFunction<CompressedPublicKey,M,Behavior> handler)
Add a new predicated case to the event matching matching events of type withMessageEvent.getPayload()
matchingmessageType
.<M> Behavior.BehaviorBuilder
Behavior.BehaviorBuilder. onMessage(Class<M> messageType, BiPredicate<CompressedPublicKey,M> test, BiFunction<CompressedPublicKey,M,Behavior> handler)
Add a new predicated case to the event matching matching events of type withMessageEvent.getPayload()
matchingmessageType
. -
Uses of CompressedPublicKey in org.drasyl.event
Methods in org.drasyl.event that return CompressedPublicKey Modifier and Type Method Description CompressedPublicKey
Peer. getPublicKey()
Returns the peer's public key.CompressedPublicKey
MessageEvent. getSender()
Returns the message's sender.Methods in org.drasyl.event with parameters of type CompressedPublicKey Modifier and Type Method Description static MessageEvent
MessageEvent. of(CompressedPublicKey sender, Object payload)
Creates a newMessageEvent
static Peer
Peer. of(CompressedPublicKey publicKey)
Constructors in org.drasyl.event with parameters of type CompressedPublicKey Constructor Description MessageEvent(CompressedPublicKey sender, Object payload)
Deprecated, for removal: This API element is subject to removal in a future version.UseMessageEvent.of(CompressedPublicKey, Object)
instead. -
Uses of CompressedPublicKey in org.drasyl.identity
Fields in org.drasyl.identity with type parameters of type CompressedPublicKey Modifier and Type Field Description static InternPool<CompressedPublicKey>
CompressedPublicKey. POOL
Methods in org.drasyl.identity that return CompressedPublicKey Modifier and Type Method Description CompressedPublicKey
CompressedKeyPair. getPublicKey()
CompressedPublicKey
Identity. getPublicKey()
CompressedPublicKey
IdentityManager. getPublicKey()
CompressedPublicKey
CompressedPublicKey. intern()
static CompressedPublicKey
CompressedPublicKey. of(byte[] compressedKey)
Converts a byte[] into aCompressedPublicKey
.static CompressedPublicKey
CompressedPublicKey. of(String compressedKey)
Converts aString
into aCompressedPublicKey
.Methods in org.drasyl.identity with parameters of type CompressedPublicKey Modifier and Type Method Description static ProofOfWork
ProofOfWork. generateProofOfWork(CompressedPublicKey publicKey, byte difficulty)
static byte
ProofOfWork. getDifficulty(ProofOfWork proofOfWork, CompressedPublicKey publicKey)
boolean
ProofOfWork. isValid(CompressedPublicKey publicKey, byte difficulty)
Checks if the current proof of work is valid for given public key and difficulty.static CompressedKeyPair
CompressedKeyPair. of(CompressedPublicKey publicKey, CompressedPrivateKey privateKey)
static Identity
Identity. of(ProofOfWork proofOfWork, CompressedPublicKey publicKey, CompressedPrivateKey privateKey)
-
Uses of CompressedPublicKey in org.drasyl.localhost
Methods in org.drasyl.localhost with parameters of type CompressedPublicKey Modifier and Type Method Description protected void
LocalHostDiscovery. matchedWrite(HandlerContext ctx, CompressedPublicKey recipient, SerializedApplicationMessage msg, CompletableFuture<Void> future)
-
Uses of CompressedPublicKey in org.drasyl.peer
Methods in org.drasyl.peer that return CompressedPublicKey Modifier and Type Method Description CompressedPublicKey
Endpoint. getPublicKey()
Returns theCompressedPublicKey
of thisEndpoint
.Methods in org.drasyl.peer that return types with arguments of type CompressedPublicKey Modifier and Type Method Description Set<CompressedPublicKey>
PeersManager. getChildren()
Set<CompressedPublicKey>
PeersManager. getPeers()
Set<CompressedPublicKey>
PeersManager. getSuperPeers()
Methods in org.drasyl.peer with parameters of type CompressedPublicKey Modifier and Type Method Description void
PeersManager. addPath(CompressedPublicKey publicKey, Object path)
void
PeersManager. addPathAndChildren(CompressedPublicKey publicKey, Object path)
void
PeersManager. addPathAndSuperPeer(CompressedPublicKey publicKey, Object path)
Set<Object>
PeersManager. getPaths(CompressedPublicKey publicKey)
static Endpoint
Endpoint. of(String host, int port, CompressedPublicKey publicKey)
Converts the givenhost
,port
, andpublicKey
into anEndpoint
.static Endpoint
Endpoint. of(String host, int port, CompressedPublicKey publicKey, Integer networkId)
Converts the givenhost
,port
,publicKey
, andnetworkId
into anEndpoint
.void
PeersManager. removeChildrenAndPath(CompressedPublicKey publicKey, Object path)
void
PeersManager. removePath(CompressedPublicKey publicKey, Object path)
void
PeersManager. removeSuperPeerAndPath(CompressedPublicKey publicKey, Object path)
-
Uses of CompressedPublicKey in org.drasyl.pipeline.handler
Methods in org.drasyl.pipeline.handler with parameters of type CompressedPublicKey Modifier and Type Method Description protected void
AddressedEnvelopeHandler. matchedRead(HandlerContext ctx, CompressedPublicKey sender, AddressedEnvelope<?,?> msg, CompletableFuture<Void> future)
protected void
AddressedEnvelopeHandler. matchedWrite(HandlerContext ctx, CompressedPublicKey recipient, Object msg, CompletableFuture<Void> future)
-
Uses of CompressedPublicKey in org.drasyl.pipeline.message
Constructors in org.drasyl.pipeline.message with parameters of type CompressedPublicKey Constructor Description ApplicationMessage(CompressedPublicKey sender, CompressedPublicKey recipient, Object content)
-
Uses of CompressedPublicKey in org.drasyl.pipeline.serialization
Constructors in org.drasyl.pipeline.serialization with parameters of type CompressedPublicKey Constructor Description SerializedApplicationMessage(CompressedPublicKey sender, CompressedPublicKey recipient, String type, byte[] content)
-
Uses of CompressedPublicKey in org.drasyl.remote.handler
Methods in org.drasyl.remote.handler with parameters of type CompressedPublicKey Modifier and Type Method Description protected void
StaticRoutesHandler. matchedWrite(HandlerContext ctx, CompressedPublicKey recipient, SerializedApplicationMessage msg, CompletableFuture<Void> future)
-
Uses of CompressedPublicKey in org.drasyl.remote.protocol
Methods in org.drasyl.remote.protocol that return CompressedPublicKey Modifier and Type Method Description CompressedPublicKey
IntermediateEnvelope. getRecipient()
CompressedPublicKey
IntermediateEnvelope. getSender()
Methods in org.drasyl.remote.protocol with parameters of type CompressedPublicKey Modifier and Type Method Description static IntermediateEnvelope<Protocol.Acknowledgement>
IntermediateEnvelope. acknowledgement(int networkId, CompressedPublicKey sender, ProofOfWork proofOfWork, CompressedPublicKey recipient, MessageId correspondingId)
Creates new acknowledgement message.static IntermediateEnvelope<Protocol.Application>
IntermediateEnvelope. application(int networkId, CompressedPublicKey sender, ProofOfWork proofOfWork, CompressedPublicKey recipient, String type, byte[] payload)
Creates new application message.static IntermediateEnvelope<Protocol.Discovery>
IntermediateEnvelope. discovery(int networkId, CompressedPublicKey sender, ProofOfWork proofOfWork, CompressedPublicKey recipient, long joinTime)
Creates a new join message.static IntermediateEnvelope<Protocol.Unite>
IntermediateEnvelope. unite(int networkId, CompressedPublicKey sender, ProofOfWork proofOfWork, CompressedPublicKey recipient, CompressedPublicKey publicKey, InetSocketAddress address)
-