Uses of Class
org.drasyl.identity.Identity
-
Packages that use Identity Package Description org.drasyl Core API that includes theDrasylNode
andDrasylConfig
.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.peer Package contains classes that are used for communicating with other peers.org.drasyl.peer.connection Provides classes to manage connections to other peers.org.drasyl.peer.connection.client Connects to super peer and other peers.org.drasyl.peer.connection.direct Establishes direct connections to other peers.org.drasyl.peer.connection.handler netty handlers for peer connections.org.drasyl.peer.connection.pipeline org.drasyl.peer.connection.server Provides a server to which children and other peers can connect.org.drasyl.peer.connection.server.handler netty handlers dedicated for the server.org.drasyl.pipeline Link between application and drasyl overlay network.org.drasyl.plugins 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 Identity Modifier and Type Method Description Identity
DrasylNode. identity()
Returns theIdentity
of this node.Constructors in org.drasyl with parameters of type Identity Constructor Description 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 Identity Modifier and Type Method Description Identity
Node. getIdentity()
Returns the node's identity.Methods in org.drasyl.event with parameters of type Identity Modifier and Type Method Description static Node
Node. of(Identity identity)
static Node
Node. of(Identity identity, Set<Endpoint> endpoints)
-
Uses of Identity in org.drasyl.identity
Methods in org.drasyl.identity that return Identity Modifier and Type Method Description static Identity
IdentityManager. generateIdentity()
Generates a new random identity.Identity
IdentityManager. getIdentity()
static Identity
Identity. of(int proofOfWork, String publicKey, String privateKey)
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 Constructor Description PeersManager(Consumer<Event> eventConsumer, Identity identity)
-
Uses of Identity in org.drasyl.peer.connection
Constructors in org.drasyl.peer.connection with parameters of type Identity Constructor Description 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 Identity Modifier and Type Method Description Identity
ClientEnvironment. getIdentity()
Constructors in org.drasyl.peer.connection.client with parameters of type Identity Constructor Description 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 Identity Constructor Description DirectConnectionsManager(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 Identity Modifier and Type Field Description protected Identity
AbstractThreeWayHandshakeHandler. identity
protected Identity
AbstractThreeWayHandshakeHandler. identity
protected Identity
AbstractThreeWayHandshakeHandler. identity
protected Identity
AbstractThreeWayHandshakeHandler. identity
Constructors in org.drasyl.peer.connection.handler with parameters of type Identity Constructor Description ExceptionHandler(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)
ThreeWayHandshakeClientHandler(int networkId, Identity identity, Duration timeout, Pipeline pipeline, CompletableFuture<Void> handshakeFuture, io.netty.util.concurrent.ScheduledFuture<?> timeoutFuture, R requestMessage)
ThreeWayHandshakeClientHandler(int networkId, Identity identity, Duration timeout, Pipeline pipeline, R requestMessage)
ThreeWayHandshakeServerHandler(Duration timeout, Pipeline pipeline, int networkId, Identity identity)
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 Identity Constructor Description LoopbackMessageSinkHandler(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 Identity Modifier and Type Method Description Identity
ServerEnvironment. getIdentity()
Constructors in org.drasyl.peer.connection.server with parameters of type Identity Constructor Description Server(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)
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 Identity Constructor Description ServerNewConnectionsGuard(int networkId, Identity identity, BooleanSupplier acceptNewConnectionsSupplier)
-
Uses of Identity in org.drasyl.pipeline
Fields in org.drasyl.pipeline declared as Identity Modifier and Type Field Description protected Identity
DefaultPipeline. identity
Methods in org.drasyl.pipeline that return Identity Modifier and Type Method Description Identity
HandlerContext. identity()
Returns the identifier of this node.Constructors in org.drasyl.pipeline with parameters of type Identity Constructor Description DefaultHandlerContext(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 Identity Modifier and Type Method Description Identity
PluginEnvironment. getIdentity()
Constructors in org.drasyl.plugins with parameters of type Identity Constructor Description PluginEnvironment(DrasylConfig config, Identity identity, Pipeline pipeline)
PluginManager(DrasylConfig config, Identity identity, Pipeline pipeline)
-