Uses of Class
org.drasyl.identity.Identity
Packages that use Identity
Package
Description
Core API that includes the
DrasylNode
and DrasylConfig
.Contains events that inform the application about various states of the drasyl node, incoming
communication, or connection type changes.
Contains classes to manage the
Identity
of the drasyl node.Package contains classes that are used for communicating with other peers.
Provides classes to manage connections to other peers.
Connects to super peer and other peers.
Establishes direct connections to other peers.
netty handlers for peer connections.
Provides a server to which children and other peers can connect.
netty handlers dedicated for the server.
Link between application and drasyl overlay network.
Flexible extensions of drasyl via plugins that can be loaded into the pipeline together with
user-defined settings.
-
Uses of Identity in org.drasyl
Methods in org.drasyl that return IdentityConstructors in org.drasyl with parameters of type IdentityModifierConstructorDescriptionprotected
DrasylNode
(DrasylConfig config, Identity identity, PeersManager peersManager, PeerChannelGroup channelGroup, Set<Endpoint> endpoints, AtomicBoolean acceptNewConnections, Pipeline pipeline, List<DrasylNodeComponent> components, PluginManager pluginManager, AtomicBoolean started, CompletableFuture<Void> startSequence, CompletableFuture<Void> shutdownSequence) -
Uses of Identity in org.drasyl.event
Methods in org.drasyl.event that return IdentityMethods in org.drasyl.event with parameters of type Identity -
Uses of Identity in org.drasyl.identity
Methods in org.drasyl.identity that return IdentityModifier and TypeMethodDescriptionstatic Identity
IdentityManager.generateIdentity()
Generates a new random identity.IdentityManager.getIdentity()
static Identity
static Identity
Identity.of
(ProofOfWork proofOfWork, String publicKey, String privateKey) static Identity
Identity.of
(ProofOfWork proofOfWork, CompressedKeyPair keyPair) static Identity
Identity.of
(ProofOfWork proofOfWork, CompressedPublicKey publicKey, CompressedPrivateKey privateKey) -
Uses of Identity in org.drasyl.peer
Constructors in org.drasyl.peer with parameters of type Identity -
Uses of Identity in org.drasyl.peer.connection
Constructors in org.drasyl.peer.connection with parameters of type IdentityModifierConstructorDescriptionprotected
DefaultSessionInitializer
(int networkId, Identity identity, int flushBufferSize, Duration readIdleTimeout, short pingPongRetries) PeerChannelGroup
(int networkId, Identity identity) PeerChannelGroup
(int networkId, Identity identity, io.netty.util.concurrent.EventExecutor executor) -
Uses of Identity in org.drasyl.peer.connection.client
Methods in org.drasyl.peer.connection.client that return IdentityConstructors in org.drasyl.peer.connection.client with parameters of type IdentityModifierConstructorDescriptionprotected
ClientChannelInitializer
(int networkId, Identity identity, int flushBufferSize, Duration readIdleTimeout, short pingPongRetries, Endpoint target) Initialize a netty Channel for an outbound connection to a node server.ClientEnvironment
(DrasylConfig config, Identity identity, Endpoint endpoint, Pipeline pipeline, PeerChannelGroup channelGroup, PeersManager peersManager, boolean joinAsChildren, short idleRetries, Duration idleTimeout, Duration handshakeTimeout) DirectClient
(DrasylConfig config, Identity identity, PeersManager peersManager, Pipeline pipeline, PeerChannelGroup channelGroup, io.netty.channel.EventLoopGroup workerGroup, Supplier<Set<Endpoint>> endpointsSupplier, BooleanSupplier directConnectionDemand, Runnable onFailure, BooleanSupplier doNewConnectionsSupplier) SuperPeerClient
(DrasylConfig config, Identity identity, PeersManager peersManager, Pipeline pipeline, PeerChannelGroup channelGroup, io.netty.channel.EventLoopGroup workerGroup, BooleanSupplier doNewConnectionsSupplier) -
Uses of Identity in org.drasyl.peer.connection.direct
Constructors in org.drasyl.peer.connection.direct with parameters of type IdentityModifierConstructorDescriptionDirectConnectionsManager
(DrasylConfig config, Identity identity, PeersManager peersManager, Pipeline pipeline, PeerChannelGroup channelGroup, io.netty.channel.EventLoopGroup workerGroup, BooleanSupplier acceptNewConnectionsSupplier, Set<Endpoint> endpoints) -
Uses of Identity in org.drasyl.peer.connection.handler
Fields in org.drasyl.peer.connection.handler declared as IdentityModifier and TypeFieldDescriptionprotected final Identity
AbstractThreeWayHandshakeHandler.identity
protected final Identity
AbstractThreeWayHandshakeHandler.identity
protected final Identity
AbstractThreeWayHandshakeHandler.identity
protected final Identity
AbstractThreeWayHandshakeHandler.identity
Constructors in org.drasyl.peer.connection.handler with parameters of type IdentityModifierConstructorDescriptionExceptionHandler
(Identity identity) Exception handler that does not re-throw occurredException
s onExceptionHandler.exceptionCaught(io.netty.channel.ChannelHandlerContext, java.lang.Throwable)
to the next pipeline.ExceptionHandler
(Identity identity, boolean rethrowExceptions) Exception handler that does re-throw occurredException
s onExceptionHandler.exceptionCaught(io.netty.channel.ChannelHandlerContext, java.lang.Throwable)
to the next pipeline, ifrethrowExceptions
istrue
.PingPongHandler
(int networkId, Identity identity, short maxRetries) PingPongHandler withretries
retries, until channel is closed.SignatureHandler
(int networkId, Identity identity) protected
ThreeWayHandshakeClientHandler
(int networkId, Identity identity, Duration timeout, Pipeline pipeline, CompletableFuture<Void> handshakeFuture, io.netty.util.concurrent.ScheduledFuture<?> timeoutFuture, R requestMessage) protected
ThreeWayHandshakeClientHandler
(int networkId, Identity identity, Duration timeout, Pipeline pipeline, R requestMessage) protected
ThreeWayHandshakeServerHandler
(Duration timeout, Pipeline pipeline, int networkId, Identity identity) protected
ThreeWayHandshakeServerHandler
(Duration timeout, Pipeline pipeline, CompletableFuture<Void> handshakeFuture, io.netty.util.concurrent.ScheduledFuture<?> timeoutFuture, R requestMessage, O offerMessage, int networkId, Identity identity) -
Uses of Identity in org.drasyl.peer.connection.pipeline
Constructors in org.drasyl.peer.connection.pipeline with parameters of type IdentityModifierConstructorDescriptionLoopbackMessageSinkHandler
(AtomicBoolean started, int networkId, Identity identity, PeersManager peersManager, Set<Endpoint> endpoints) -
Uses of Identity in org.drasyl.peer.connection.server
Methods in org.drasyl.peer.connection.server that return IdentityConstructors in org.drasyl.peer.connection.server with parameters of type IdentityModifierConstructorDescriptionServer
(Identity identity, Pipeline pipeline, PeersManager peersManager, DrasylConfig config, PeerChannelGroup channelGroup, io.netty.channel.EventLoopGroup workerGroup, io.netty.channel.EventLoopGroup bossGroup, AtomicBoolean opened, BooleanSupplier acceptNewConnectionsSupplier, Set<Endpoint> nodeEndpoints) Server for accepting connections from child peers and non-child peers.Server
(Identity identity, Pipeline pipeline, PeersManager peersManager, DrasylConfig config, PeerChannelGroup channelGroup, io.netty.channel.EventLoopGroup workerGroup, io.netty.channel.EventLoopGroup bossGroup, Set<Endpoint> nodeEndpoints, BooleanSupplier acceptNewConnectionsSupplier) protected
ServerChannelInitializer
(int networkId, Identity identity, int flushBufferSize, Duration readIdleTimeout, short pingPongRetries) ServerEnvironment
(DrasylConfig config, Identity identity, PeersManager peersManager, Pipeline pipeline, Set<Endpoint> endpoints, PeerChannelGroup channelGroup, BooleanSupplier acceptedNewConnectionsSupplier) -
Uses of Identity in org.drasyl.peer.connection.server.handler
Constructors in org.drasyl.peer.connection.server.handler with parameters of type IdentityModifierConstructorDescriptionServerNewConnectionsGuard
(int networkId, Identity identity, BooleanSupplier acceptNewConnectionsSupplier) -
Uses of Identity in org.drasyl.pipeline
Fields in org.drasyl.pipeline declared as IdentityMethods in org.drasyl.pipeline that return IdentityConstructors in org.drasyl.pipeline with parameters of type IdentityModifierConstructorDescriptionDefaultHandlerContext
(String name, Handler handler, DrasylConfig config, Pipeline pipeline, io.reactivex.rxjava3.core.Scheduler scheduler, Identity identity, TypeValidator inboundValidator, TypeValidator outboundValidator) Generates a new default handler context for the givenhandler
.DrasylPipeline
(Consumer<Event> eventConsumer, DrasylConfig config, Identity identity) EmbeddedPipeline
(Identity identity, TypeValidator inboundValidator, TypeValidator outboundValidator) EmbeddedPipeline
(Identity identity, TypeValidator inboundValidator, TypeValidator outboundValidator, Handler... handlers) Creates a new embedded pipeline and adds all given handler to it. -
Uses of Identity in org.drasyl.plugins
Methods in org.drasyl.plugins that return IdentityConstructors in org.drasyl.plugins with parameters of type IdentityModifierConstructorDescriptionPluginEnvironment
(DrasylConfig config, Identity identity, Pipeline pipeline) PluginManager
(DrasylConfig config, Identity identity, Pipeline pipeline)