init
This commit is contained in:
commit
c5ee4e27e6
131 files changed
+9926
No files matched your search
@@ -0,0 +1,8 @@
|
|||||||
|
LOGIN_DB_PORT=20011
|
||||||
|
LOGIN_DB_NAME=openmmo_login_db
|
||||||
|
LOGIN_DB_USER=openmmo_login_user
|
||||||
|
LOGIN_DB_PASSWORD=changeMe!
|
||||||
|
GAME_DB_PORT=20021
|
||||||
|
GAME_DB_NAME=openmmo_game_db
|
||||||
|
GAME_DB_USER=openmmo_game_user
|
||||||
|
GAME_DB_PASSWORD=changeMe!
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
# Restrict access to priviliged files like actions
|
||||||
|
.forgejo/** @OpenMMO/Owners
|
||||||
+42
@@ -0,0 +1,42 @@
|
|||||||
|
.gradle
|
||||||
|
build/
|
||||||
|
!gradle/wrapper/gradle-wrapper.jar
|
||||||
|
!**/src/main/**/build/
|
||||||
|
!**/src/test/**/build/
|
||||||
|
|
||||||
|
### IntelliJ IDEA ###
|
||||||
|
.idea/
|
||||||
|
*.iws
|
||||||
|
*.iml
|
||||||
|
*.ipr
|
||||||
|
out/
|
||||||
|
!**/src/main/**/out/
|
||||||
|
!**/src/test/**/out/
|
||||||
|
|
||||||
|
### Kotlin ###
|
||||||
|
.kotlin
|
||||||
|
|
||||||
|
### Eclipse ###
|
||||||
|
.apt_generated
|
||||||
|
.classpath
|
||||||
|
.factorypath
|
||||||
|
.project
|
||||||
|
.settings
|
||||||
|
.springBeans
|
||||||
|
.sts4-cache
|
||||||
|
bin/
|
||||||
|
!**/src/main/**/bin/
|
||||||
|
!**/src/test/**/bin/
|
||||||
|
|
||||||
|
### NetBeans ###
|
||||||
|
/nbproject/private/
|
||||||
|
/nbbuild/
|
||||||
|
/dist/
|
||||||
|
/nbdist/
|
||||||
|
/.nb-gradle/
|
||||||
|
|
||||||
|
### VS Code ###
|
||||||
|
.vscode/
|
||||||
|
|
||||||
|
### Mac OS ###
|
||||||
|
.DS_Store
|
||||||
@@ -0,0 +1,661 @@
|
|||||||
|
GNU AFFERO GENERAL PUBLIC LICENSE
|
||||||
|
Version 3, 19 November 2007
|
||||||
|
|
||||||
|
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||||
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
|
of this license document, but changing it is not allowed.
|
||||||
|
|
||||||
|
Preamble
|
||||||
|
|
||||||
|
The GNU Affero General Public License is a free, copyleft license for
|
||||||
|
software and other kinds of works, specifically designed to ensure
|
||||||
|
cooperation with the community in the case of network server software.
|
||||||
|
|
||||||
|
The licenses for most software and other practical works are designed
|
||||||
|
to take away your freedom to share and change the works. By contrast,
|
||||||
|
our General Public Licenses are intended to guarantee your freedom to
|
||||||
|
share and change all versions of a program--to make sure it remains free
|
||||||
|
software for all its users.
|
||||||
|
|
||||||
|
When we speak of free software, we are referring to freedom, not
|
||||||
|
price. Our General Public Licenses are designed to make sure that you
|
||||||
|
have the freedom to distribute copies of free software (and charge for
|
||||||
|
them if you wish), that you receive source code or can get it if you
|
||||||
|
want it, that you can change the software or use pieces of it in new
|
||||||
|
free programs, and that you know you can do these things.
|
||||||
|
|
||||||
|
Developers that use our General Public Licenses protect your rights
|
||||||
|
with two steps: (1) assert copyright on the software, and (2) offer
|
||||||
|
you this License which gives you legal permission to copy, distribute
|
||||||
|
and/or modify the software.
|
||||||
|
|
||||||
|
A secondary benefit of defending all users' freedom is that
|
||||||
|
improvements made in alternate versions of the program, if they
|
||||||
|
receive widespread use, become available for other developers to
|
||||||
|
incorporate. Many developers of free software are heartened and
|
||||||
|
encouraged by the resulting cooperation. However, in the case of
|
||||||
|
software used on network servers, this result may fail to come about.
|
||||||
|
The GNU General Public License permits making a modified version and
|
||||||
|
letting the public access it on a server without ever releasing its
|
||||||
|
source code to the public.
|
||||||
|
|
||||||
|
The GNU Affero General Public License is designed specifically to
|
||||||
|
ensure that, in such cases, the modified source code becomes available
|
||||||
|
to the community. It requires the operator of a network server to
|
||||||
|
provide the source code of the modified version running there to the
|
||||||
|
users of that server. Therefore, public use of a modified version, on
|
||||||
|
a publicly accessible server, gives the public access to the source
|
||||||
|
code of the modified version.
|
||||||
|
|
||||||
|
An older license, called the Affero General Public License and
|
||||||
|
published by Affero, was designed to accomplish similar goals. This is
|
||||||
|
a different license, not a version of the Affero GPL, but Affero has
|
||||||
|
released a new version of the Affero GPL which permits relicensing under
|
||||||
|
this license.
|
||||||
|
|
||||||
|
The precise terms and conditions for copying, distribution and
|
||||||
|
modification follow.
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
0. Definitions.
|
||||||
|
|
||||||
|
"This License" refers to version 3 of the GNU Affero General Public License.
|
||||||
|
|
||||||
|
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||||
|
works, such as semiconductor masks.
|
||||||
|
|
||||||
|
"The Program" refers to any copyrightable work licensed under this
|
||||||
|
License. Each licensee is addressed as "you". "Licensees" and
|
||||||
|
"recipients" may be individuals or organizations.
|
||||||
|
|
||||||
|
To "modify" a work means to copy from or adapt all or part of the work
|
||||||
|
in a fashion requiring copyright permission, other than the making of an
|
||||||
|
exact copy. The resulting work is called a "modified version" of the
|
||||||
|
earlier work or a work "based on" the earlier work.
|
||||||
|
|
||||||
|
A "covered work" means either the unmodified Program or a work based
|
||||||
|
on the Program.
|
||||||
|
|
||||||
|
To "propagate" a work means to do anything with it that, without
|
||||||
|
permission, would make you directly or secondarily liable for
|
||||||
|
infringement under applicable copyright law, except executing it on a
|
||||||
|
computer or modifying a private copy. Propagation includes copying,
|
||||||
|
distribution (with or without modification), making available to the
|
||||||
|
public, and in some countries other activities as well.
|
||||||
|
|
||||||
|
To "convey" a work means any kind of propagation that enables other
|
||||||
|
parties to make or receive copies. Mere interaction with a user through
|
||||||
|
a computer network, with no transfer of a copy, is not conveying.
|
||||||
|
|
||||||
|
An interactive user interface displays "Appropriate Legal Notices"
|
||||||
|
to the extent that it includes a convenient and prominently visible
|
||||||
|
feature that (1) displays an appropriate copyright notice, and (2)
|
||||||
|
tells the user that there is no warranty for the work (except to the
|
||||||
|
extent that warranties are provided), that licensees may convey the
|
||||||
|
work under this License, and how to view a copy of this License. If
|
||||||
|
the interface presents a list of user commands or options, such as a
|
||||||
|
menu, a prominent item in the list meets this criterion.
|
||||||
|
|
||||||
|
1. Source Code.
|
||||||
|
|
||||||
|
The "source code" for a work means the preferred form of the work
|
||||||
|
for making modifications to it. "Object code" means any non-source
|
||||||
|
form of a work.
|
||||||
|
|
||||||
|
A "Standard Interface" means an interface that either is an official
|
||||||
|
standard defined by a recognized standards body, or, in the case of
|
||||||
|
interfaces specified for a particular programming language, one that
|
||||||
|
is widely used among developers working in that language.
|
||||||
|
|
||||||
|
The "System Libraries" of an executable work include anything, other
|
||||||
|
than the work as a whole, that (a) is included in the normal form of
|
||||||
|
packaging a Major Component, but which is not part of that Major
|
||||||
|
Component, and (b) serves only to enable use of the work with that
|
||||||
|
Major Component, or to implement a Standard Interface for which an
|
||||||
|
implementation is available to the public in source code form. A
|
||||||
|
"Major Component", in this context, means a major essential component
|
||||||
|
(kernel, window system, and so on) of the specific operating system
|
||||||
|
(if any) on which the executable work runs, or a compiler used to
|
||||||
|
produce the work, or an object code interpreter used to run it.
|
||||||
|
|
||||||
|
The "Corresponding Source" for a work in object code form means all
|
||||||
|
the source code needed to generate, install, and (for an executable
|
||||||
|
work) run the object code and to modify the work, including scripts to
|
||||||
|
control those activities. However, it does not include the work's
|
||||||
|
System Libraries, or general-purpose tools or generally available free
|
||||||
|
programs which are used unmodified in performing those activities but
|
||||||
|
which are not part of the work. For example, Corresponding Source
|
||||||
|
includes interface definition files associated with source files for
|
||||||
|
the work, and the source code for shared libraries and dynamically
|
||||||
|
linked subprograms that the work is specifically designed to require,
|
||||||
|
such as by intimate data communication or control flow between those
|
||||||
|
subprograms and other parts of the work.
|
||||||
|
|
||||||
|
The Corresponding Source need not include anything that users
|
||||||
|
can regenerate automatically from other parts of the Corresponding
|
||||||
|
Source.
|
||||||
|
|
||||||
|
The Corresponding Source for a work in source code form is that
|
||||||
|
same work.
|
||||||
|
|
||||||
|
2. Basic Permissions.
|
||||||
|
|
||||||
|
All rights granted under this License are granted for the term of
|
||||||
|
copyright on the Program, and are irrevocable provided the stated
|
||||||
|
conditions are met. This License explicitly affirms your unlimited
|
||||||
|
permission to run the unmodified Program. The output from running a
|
||||||
|
covered work is covered by this License only if the output, given its
|
||||||
|
content, constitutes a covered work. This License acknowledges your
|
||||||
|
rights of fair use or other equivalent, as provided by copyright law.
|
||||||
|
|
||||||
|
You may make, run and propagate covered works that you do not
|
||||||
|
convey, without conditions so long as your license otherwise remains
|
||||||
|
in force. You may convey covered works to others for the sole purpose
|
||||||
|
of having them make modifications exclusively for you, or provide you
|
||||||
|
with facilities for running those works, provided that you comply with
|
||||||
|
the terms of this License in conveying all material for which you do
|
||||||
|
not control copyright. Those thus making or running the covered works
|
||||||
|
for you must do so exclusively on your behalf, under your direction
|
||||||
|
and control, on terms that prohibit them from making any copies of
|
||||||
|
your copyrighted material outside their relationship with you.
|
||||||
|
|
||||||
|
Conveying under any other circumstances is permitted solely under
|
||||||
|
the conditions stated below. Sublicensing is not allowed; section 10
|
||||||
|
makes it unnecessary.
|
||||||
|
|
||||||
|
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||||
|
|
||||||
|
No covered work shall be deemed part of an effective technological
|
||||||
|
measure under any applicable law fulfilling obligations under article
|
||||||
|
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||||
|
similar laws prohibiting or restricting circumvention of such
|
||||||
|
measures.
|
||||||
|
|
||||||
|
When you convey a covered work, you waive any legal power to forbid
|
||||||
|
circumvention of technological measures to the extent such circumvention
|
||||||
|
is effected by exercising rights under this License with respect to
|
||||||
|
the covered work, and you disclaim any intention to limit operation or
|
||||||
|
modification of the work as a means of enforcing, against the work's
|
||||||
|
users, your or third parties' legal rights to forbid circumvention of
|
||||||
|
technological measures.
|
||||||
|
|
||||||
|
4. Conveying Verbatim Copies.
|
||||||
|
|
||||||
|
You may convey verbatim copies of the Program's source code as you
|
||||||
|
receive it, in any medium, provided that you conspicuously and
|
||||||
|
appropriately publish on each copy an appropriate copyright notice;
|
||||||
|
keep intact all notices stating that this License and any
|
||||||
|
non-permissive terms added in accord with section 7 apply to the code;
|
||||||
|
keep intact all notices of the absence of any warranty; and give all
|
||||||
|
recipients a copy of this License along with the Program.
|
||||||
|
|
||||||
|
You may charge any price or no price for each copy that you convey,
|
||||||
|
and you may offer support or warranty protection for a fee.
|
||||||
|
|
||||||
|
5. Conveying Modified Source Versions.
|
||||||
|
|
||||||
|
You may convey a work based on the Program, or the modifications to
|
||||||
|
produce it from the Program, in the form of source code under the
|
||||||
|
terms of section 4, provided that you also meet all of these conditions:
|
||||||
|
|
||||||
|
a) The work must carry prominent notices stating that you modified
|
||||||
|
it, and giving a relevant date.
|
||||||
|
|
||||||
|
b) The work must carry prominent notices stating that it is
|
||||||
|
released under this License and any conditions added under section
|
||||||
|
7. This requirement modifies the requirement in section 4 to
|
||||||
|
"keep intact all notices".
|
||||||
|
|
||||||
|
c) You must license the entire work, as a whole, under this
|
||||||
|
License to anyone who comes into possession of a copy. This
|
||||||
|
License will therefore apply, along with any applicable section 7
|
||||||
|
additional terms, to the whole of the work, and all its parts,
|
||||||
|
regardless of how they are packaged. This License gives no
|
||||||
|
permission to license the work in any other way, but it does not
|
||||||
|
invalidate such permission if you have separately received it.
|
||||||
|
|
||||||
|
d) If the work has interactive user interfaces, each must display
|
||||||
|
Appropriate Legal Notices; however, if the Program has interactive
|
||||||
|
interfaces that do not display Appropriate Legal Notices, your
|
||||||
|
work need not make them do so.
|
||||||
|
|
||||||
|
A compilation of a covered work with other separate and independent
|
||||||
|
works, which are not by their nature extensions of the covered work,
|
||||||
|
and which are not combined with it such as to form a larger program,
|
||||||
|
in or on a volume of a storage or distribution medium, is called an
|
||||||
|
"aggregate" if the compilation and its resulting copyright are not
|
||||||
|
used to limit the access or legal rights of the compilation's users
|
||||||
|
beyond what the individual works permit. Inclusion of a covered work
|
||||||
|
in an aggregate does not cause this License to apply to the other
|
||||||
|
parts of the aggregate.
|
||||||
|
|
||||||
|
6. Conveying Non-Source Forms.
|
||||||
|
|
||||||
|
You may convey a covered work in object code form under the terms
|
||||||
|
of sections 4 and 5, provided that you also convey the
|
||||||
|
machine-readable Corresponding Source under the terms of this License,
|
||||||
|
in one of these ways:
|
||||||
|
|
||||||
|
a) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by the
|
||||||
|
Corresponding Source fixed on a durable physical medium
|
||||||
|
customarily used for software interchange.
|
||||||
|
|
||||||
|
b) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by a
|
||||||
|
written offer, valid for at least three years and valid for as
|
||||||
|
long as you offer spare parts or customer support for that product
|
||||||
|
model, to give anyone who possesses the object code either (1) a
|
||||||
|
copy of the Corresponding Source for all the software in the
|
||||||
|
product that is covered by this License, on a durable physical
|
||||||
|
medium customarily used for software interchange, for a price no
|
||||||
|
more than your reasonable cost of physically performing this
|
||||||
|
conveying of source, or (2) access to copy the
|
||||||
|
Corresponding Source from a network server at no charge.
|
||||||
|
|
||||||
|
c) Convey individual copies of the object code with a copy of the
|
||||||
|
written offer to provide the Corresponding Source. This
|
||||||
|
alternative is allowed only occasionally and noncommercially, and
|
||||||
|
only if you received the object code with such an offer, in accord
|
||||||
|
with subsection 6b.
|
||||||
|
|
||||||
|
d) Convey the object code by offering access from a designated
|
||||||
|
place (gratis or for a charge), and offer equivalent access to the
|
||||||
|
Corresponding Source in the same way through the same place at no
|
||||||
|
further charge. You need not require recipients to copy the
|
||||||
|
Corresponding Source along with the object code. If the place to
|
||||||
|
copy the object code is a network server, the Corresponding Source
|
||||||
|
may be on a different server (operated by you or a third party)
|
||||||
|
that supports equivalent copying facilities, provided you maintain
|
||||||
|
clear directions next to the object code saying where to find the
|
||||||
|
Corresponding Source. Regardless of what server hosts the
|
||||||
|
Corresponding Source, you remain obligated to ensure that it is
|
||||||
|
available for as long as needed to satisfy these requirements.
|
||||||
|
|
||||||
|
e) Convey the object code using peer-to-peer transmission, provided
|
||||||
|
you inform other peers where the object code and Corresponding
|
||||||
|
Source of the work are being offered to the general public at no
|
||||||
|
charge under subsection 6d.
|
||||||
|
|
||||||
|
A separable portion of the object code, whose source code is excluded
|
||||||
|
from the Corresponding Source as a System Library, need not be
|
||||||
|
included in conveying the object code work.
|
||||||
|
|
||||||
|
A "User Product" is either (1) a "consumer product", which means any
|
||||||
|
tangible personal property which is normally used for personal, family,
|
||||||
|
or household purposes, or (2) anything designed or sold for incorporation
|
||||||
|
into a dwelling. In determining whether a product is a consumer product,
|
||||||
|
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||||
|
product received by a particular user, "normally used" refers to a
|
||||||
|
typical or common use of that class of product, regardless of the status
|
||||||
|
of the particular user or of the way in which the particular user
|
||||||
|
actually uses, or expects or is expected to use, the product. A product
|
||||||
|
is a consumer product regardless of whether the product has substantial
|
||||||
|
commercial, industrial or non-consumer uses, unless such uses represent
|
||||||
|
the only significant mode of use of the product.
|
||||||
|
|
||||||
|
"Installation Information" for a User Product means any methods,
|
||||||
|
procedures, authorization keys, or other information required to install
|
||||||
|
and execute modified versions of a covered work in that User Product from
|
||||||
|
a modified version of its Corresponding Source. The information must
|
||||||
|
suffice to ensure that the continued functioning of the modified object
|
||||||
|
code is in no case prevented or interfered with solely because
|
||||||
|
modification has been made.
|
||||||
|
|
||||||
|
If you convey an object code work under this section in, or with, or
|
||||||
|
specifically for use in, a User Product, and the conveying occurs as
|
||||||
|
part of a transaction in which the right of possession and use of the
|
||||||
|
User Product is transferred to the recipient in perpetuity or for a
|
||||||
|
fixed term (regardless of how the transaction is characterized), the
|
||||||
|
Corresponding Source conveyed under this section must be accompanied
|
||||||
|
by the Installation Information. But this requirement does not apply
|
||||||
|
if neither you nor any third party retains the ability to install
|
||||||
|
modified object code on the User Product (for example, the work has
|
||||||
|
been installed in ROM).
|
||||||
|
|
||||||
|
The requirement to provide Installation Information does not include a
|
||||||
|
requirement to continue to provide support service, warranty, or updates
|
||||||
|
for a work that has been modified or installed by the recipient, or for
|
||||||
|
the User Product in which it has been modified or installed. Access to a
|
||||||
|
network may be denied when the modification itself materially and
|
||||||
|
adversely affects the operation of the network or violates the rules and
|
||||||
|
protocols for communication across the network.
|
||||||
|
|
||||||
|
Corresponding Source conveyed, and Installation Information provided,
|
||||||
|
in accord with this section must be in a format that is publicly
|
||||||
|
documented (and with an implementation available to the public in
|
||||||
|
source code form), and must require no special password or key for
|
||||||
|
unpacking, reading or copying.
|
||||||
|
|
||||||
|
7. Additional Terms.
|
||||||
|
|
||||||
|
"Additional permissions" are terms that supplement the terms of this
|
||||||
|
License by making exceptions from one or more of its conditions.
|
||||||
|
Additional permissions that are applicable to the entire Program shall
|
||||||
|
be treated as though they were included in this License, to the extent
|
||||||
|
that they are valid under applicable law. If additional permissions
|
||||||
|
apply only to part of the Program, that part may be used separately
|
||||||
|
under those permissions, but the entire Program remains governed by
|
||||||
|
this License without regard to the additional permissions.
|
||||||
|
|
||||||
|
When you convey a copy of a covered work, you may at your option
|
||||||
|
remove any additional permissions from that copy, or from any part of
|
||||||
|
it. (Additional permissions may be written to require their own
|
||||||
|
removal in certain cases when you modify the work.) You may place
|
||||||
|
additional permissions on material, added by you to a covered work,
|
||||||
|
for which you have or can give appropriate copyright permission.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, for material you
|
||||||
|
add to a covered work, you may (if authorized by the copyright holders of
|
||||||
|
that material) supplement the terms of this License with terms:
|
||||||
|
|
||||||
|
a) Disclaiming warranty or limiting liability differently from the
|
||||||
|
terms of sections 15 and 16 of this License; or
|
||||||
|
|
||||||
|
b) Requiring preservation of specified reasonable legal notices or
|
||||||
|
author attributions in that material or in the Appropriate Legal
|
||||||
|
Notices displayed by works containing it; or
|
||||||
|
|
||||||
|
c) Prohibiting misrepresentation of the origin of that material, or
|
||||||
|
requiring that modified versions of such material be marked in
|
||||||
|
reasonable ways as different from the original version; or
|
||||||
|
|
||||||
|
d) Limiting the use for publicity purposes of names of licensors or
|
||||||
|
authors of the material; or
|
||||||
|
|
||||||
|
e) Declining to grant rights under trademark law for use of some
|
||||||
|
trade names, trademarks, or service marks; or
|
||||||
|
|
||||||
|
f) Requiring indemnification of licensors and authors of that
|
||||||
|
material by anyone who conveys the material (or modified versions of
|
||||||
|
it) with contractual assumptions of liability to the recipient, for
|
||||||
|
any liability that these contractual assumptions directly impose on
|
||||||
|
those licensors and authors.
|
||||||
|
|
||||||
|
All other non-permissive additional terms are considered "further
|
||||||
|
restrictions" within the meaning of section 10. If the Program as you
|
||||||
|
received it, or any part of it, contains a notice stating that it is
|
||||||
|
governed by this License along with a term that is a further
|
||||||
|
restriction, you may remove that term. If a license document contains
|
||||||
|
a further restriction but permits relicensing or conveying under this
|
||||||
|
License, you may add to a covered work material governed by the terms
|
||||||
|
of that license document, provided that the further restriction does
|
||||||
|
not survive such relicensing or conveying.
|
||||||
|
|
||||||
|
If you add terms to a covered work in accord with this section, you
|
||||||
|
must place, in the relevant source files, a statement of the
|
||||||
|
additional terms that apply to those files, or a notice indicating
|
||||||
|
where to find the applicable terms.
|
||||||
|
|
||||||
|
Additional terms, permissive or non-permissive, may be stated in the
|
||||||
|
form of a separately written license, or stated as exceptions;
|
||||||
|
the above requirements apply either way.
|
||||||
|
|
||||||
|
8. Termination.
|
||||||
|
|
||||||
|
You may not propagate or modify a covered work except as expressly
|
||||||
|
provided under this License. Any attempt otherwise to propagate or
|
||||||
|
modify it is void, and will automatically terminate your rights under
|
||||||
|
this License (including any patent licenses granted under the third
|
||||||
|
paragraph of section 11).
|
||||||
|
|
||||||
|
However, if you cease all violation of this License, then your
|
||||||
|
license from a particular copyright holder is reinstated (a)
|
||||||
|
provisionally, unless and until the copyright holder explicitly and
|
||||||
|
finally terminates your license, and (b) permanently, if the copyright
|
||||||
|
holder fails to notify you of the violation by some reasonable means
|
||||||
|
prior to 60 days after the cessation.
|
||||||
|
|
||||||
|
Moreover, your license from a particular copyright holder is
|
||||||
|
reinstated permanently if the copyright holder notifies you of the
|
||||||
|
violation by some reasonable means, this is the first time you have
|
||||||
|
received notice of violation of this License (for any work) from that
|
||||||
|
copyright holder, and you cure the violation prior to 30 days after
|
||||||
|
your receipt of the notice.
|
||||||
|
|
||||||
|
Termination of your rights under this section does not terminate the
|
||||||
|
licenses of parties who have received copies or rights from you under
|
||||||
|
this License. If your rights have been terminated and not permanently
|
||||||
|
reinstated, you do not qualify to receive new licenses for the same
|
||||||
|
material under section 10.
|
||||||
|
|
||||||
|
9. Acceptance Not Required for Having Copies.
|
||||||
|
|
||||||
|
You are not required to accept this License in order to receive or
|
||||||
|
run a copy of the Program. Ancillary propagation of a covered work
|
||||||
|
occurring solely as a consequence of using peer-to-peer transmission
|
||||||
|
to receive a copy likewise does not require acceptance. However,
|
||||||
|
nothing other than this License grants you permission to propagate or
|
||||||
|
modify any covered work. These actions infringe copyright if you do
|
||||||
|
not accept this License. Therefore, by modifying or propagating a
|
||||||
|
covered work, you indicate your acceptance of this License to do so.
|
||||||
|
|
||||||
|
10. Automatic Licensing of Downstream Recipients.
|
||||||
|
|
||||||
|
Each time you convey a covered work, the recipient automatically
|
||||||
|
receives a license from the original licensors, to run, modify and
|
||||||
|
propagate that work, subject to this License. You are not responsible
|
||||||
|
for enforcing compliance by third parties with this License.
|
||||||
|
|
||||||
|
An "entity transaction" is a transaction transferring control of an
|
||||||
|
organization, or substantially all assets of one, or subdividing an
|
||||||
|
organization, or merging organizations. If propagation of a covered
|
||||||
|
work results from an entity transaction, each party to that
|
||||||
|
transaction who receives a copy of the work also receives whatever
|
||||||
|
licenses to the work the party's predecessor in interest had or could
|
||||||
|
give under the previous paragraph, plus a right to possession of the
|
||||||
|
Corresponding Source of the work from the predecessor in interest, if
|
||||||
|
the predecessor has it or can get it with reasonable efforts.
|
||||||
|
|
||||||
|
You may not impose any further restrictions on the exercise of the
|
||||||
|
rights granted or affirmed under this License. For example, you may
|
||||||
|
not impose a license fee, royalty, or other charge for exercise of
|
||||||
|
rights granted under this License, and you may not initiate litigation
|
||||||
|
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||||
|
any patent claim is infringed by making, using, selling, offering for
|
||||||
|
sale, or importing the Program or any portion of it.
|
||||||
|
|
||||||
|
11. Patents.
|
||||||
|
|
||||||
|
A "contributor" is a copyright holder who authorizes use under this
|
||||||
|
License of the Program or a work on which the Program is based. The
|
||||||
|
work thus licensed is called the contributor's "contributor version".
|
||||||
|
|
||||||
|
A contributor's "essential patent claims" are all patent claims
|
||||||
|
owned or controlled by the contributor, whether already acquired or
|
||||||
|
hereafter acquired, that would be infringed by some manner, permitted
|
||||||
|
by this License, of making, using, or selling its contributor version,
|
||||||
|
but do not include claims that would be infringed only as a
|
||||||
|
consequence of further modification of the contributor version. For
|
||||||
|
purposes of this definition, "control" includes the right to grant
|
||||||
|
patent sublicenses in a manner consistent with the requirements of
|
||||||
|
this License.
|
||||||
|
|
||||||
|
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||||
|
patent license under the contributor's essential patent claims, to
|
||||||
|
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||||
|
propagate the contents of its contributor version.
|
||||||
|
|
||||||
|
In the following three paragraphs, a "patent license" is any express
|
||||||
|
agreement or commitment, however denominated, not to enforce a patent
|
||||||
|
(such as an express permission to practice a patent or covenant not to
|
||||||
|
sue for patent infringement). To "grant" such a patent license to a
|
||||||
|
party means to make such an agreement or commitment not to enforce a
|
||||||
|
patent against the party.
|
||||||
|
|
||||||
|
If you convey a covered work, knowingly relying on a patent license,
|
||||||
|
and the Corresponding Source of the work is not available for anyone
|
||||||
|
to copy, free of charge and under the terms of this License, through a
|
||||||
|
publicly available network server or other readily accessible means,
|
||||||
|
then you must either (1) cause the Corresponding Source to be so
|
||||||
|
available, or (2) arrange to deprive yourself of the benefit of the
|
||||||
|
patent license for this particular work, or (3) arrange, in a manner
|
||||||
|
consistent with the requirements of this License, to extend the patent
|
||||||
|
license to downstream recipients. "Knowingly relying" means you have
|
||||||
|
actual knowledge that, but for the patent license, your conveying the
|
||||||
|
covered work in a country, or your recipient's use of the covered work
|
||||||
|
in a country, would infringe one or more identifiable patents in that
|
||||||
|
country that you have reason to believe are valid.
|
||||||
|
|
||||||
|
If, pursuant to or in connection with a single transaction or
|
||||||
|
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||||
|
covered work, and grant a patent license to some of the parties
|
||||||
|
receiving the covered work authorizing them to use, propagate, modify
|
||||||
|
or convey a specific copy of the covered work, then the patent license
|
||||||
|
you grant is automatically extended to all recipients of the covered
|
||||||
|
work and works based on it.
|
||||||
|
|
||||||
|
A patent license is "discriminatory" if it does not include within
|
||||||
|
the scope of its coverage, prohibits the exercise of, or is
|
||||||
|
conditioned on the non-exercise of one or more of the rights that are
|
||||||
|
specifically granted under this License. You may not convey a covered
|
||||||
|
work if you are a party to an arrangement with a third party that is
|
||||||
|
in the business of distributing software, under which you make payment
|
||||||
|
to the third party based on the extent of your activity of conveying
|
||||||
|
the work, and under which the third party grants, to any of the
|
||||||
|
parties who would receive the covered work from you, a discriminatory
|
||||||
|
patent license (a) in connection with copies of the covered work
|
||||||
|
conveyed by you (or copies made from those copies), or (b) primarily
|
||||||
|
for and in connection with specific products or compilations that
|
||||||
|
contain the covered work, unless you entered into that arrangement,
|
||||||
|
or that patent license was granted, prior to 28 March 2007.
|
||||||
|
|
||||||
|
Nothing in this License shall be construed as excluding or limiting
|
||||||
|
any implied license or other defenses to infringement that may
|
||||||
|
otherwise be available to you under applicable patent law.
|
||||||
|
|
||||||
|
12. No Surrender of Others' Freedom.
|
||||||
|
|
||||||
|
If conditions are imposed on you (whether by court order, agreement or
|
||||||
|
otherwise) that contradict the conditions of this License, they do not
|
||||||
|
excuse you from the conditions of this License. If you cannot convey a
|
||||||
|
covered work so as to satisfy simultaneously your obligations under this
|
||||||
|
License and any other pertinent obligations, then as a consequence you may
|
||||||
|
not convey it at all. For example, if you agree to terms that obligate you
|
||||||
|
to collect a royalty for further conveying from those to whom you convey
|
||||||
|
the Program, the only way you could satisfy both those terms and this
|
||||||
|
License would be to refrain entirely from conveying the Program.
|
||||||
|
|
||||||
|
13. Remote Network Interaction; Use with the GNU General Public License.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, if you modify the
|
||||||
|
Program, your modified version must prominently offer all users
|
||||||
|
interacting with it remotely through a computer network (if your version
|
||||||
|
supports such interaction) an opportunity to receive the Corresponding
|
||||||
|
Source of your version by providing access to the Corresponding Source
|
||||||
|
from a network server at no charge, through some standard or customary
|
||||||
|
means of facilitating copying of software. This Corresponding Source
|
||||||
|
shall include the Corresponding Source for any work covered by version 3
|
||||||
|
of the GNU General Public License that is incorporated pursuant to the
|
||||||
|
following paragraph.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, you have
|
||||||
|
permission to link or combine any covered work with a work licensed
|
||||||
|
under version 3 of the GNU General Public License into a single
|
||||||
|
combined work, and to convey the resulting work. The terms of this
|
||||||
|
License will continue to apply to the part which is the covered work,
|
||||||
|
but the work with which it is combined will remain governed by version
|
||||||
|
3 of the GNU General Public License.
|
||||||
|
|
||||||
|
14. Revised Versions of this License.
|
||||||
|
|
||||||
|
The Free Software Foundation may publish revised and/or new versions of
|
||||||
|
the GNU Affero General Public License from time to time. Such new versions
|
||||||
|
will be similar in spirit to the present version, but may differ in detail to
|
||||||
|
address new problems or concerns.
|
||||||
|
|
||||||
|
Each version is given a distinguishing version number. If the
|
||||||
|
Program specifies that a certain numbered version of the GNU Affero General
|
||||||
|
Public License "or any later version" applies to it, you have the
|
||||||
|
option of following the terms and conditions either of that numbered
|
||||||
|
version or of any later version published by the Free Software
|
||||||
|
Foundation. If the Program does not specify a version number of the
|
||||||
|
GNU Affero General Public License, you may choose any version ever published
|
||||||
|
by the Free Software Foundation.
|
||||||
|
|
||||||
|
If the Program specifies that a proxy can decide which future
|
||||||
|
versions of the GNU Affero General Public License can be used, that proxy's
|
||||||
|
public statement of acceptance of a version permanently authorizes you
|
||||||
|
to choose that version for the Program.
|
||||||
|
|
||||||
|
Later license versions may give you additional or different
|
||||||
|
permissions. However, no additional obligations are imposed on any
|
||||||
|
author or copyright holder as a result of your choosing to follow a
|
||||||
|
later version.
|
||||||
|
|
||||||
|
15. Disclaimer of Warranty.
|
||||||
|
|
||||||
|
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||||
|
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||||
|
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||||
|
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||||
|
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||||
|
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||||
|
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||||
|
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||||
|
|
||||||
|
16. Limitation of Liability.
|
||||||
|
|
||||||
|
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||||
|
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||||
|
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||||
|
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||||
|
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||||
|
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||||
|
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||||
|
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||||
|
SUCH DAMAGES.
|
||||||
|
|
||||||
|
17. Interpretation of Sections 15 and 16.
|
||||||
|
|
||||||
|
If the disclaimer of warranty and limitation of liability provided
|
||||||
|
above cannot be given local legal effect according to their terms,
|
||||||
|
reviewing courts shall apply local law that most closely approximates
|
||||||
|
an absolute waiver of all civil liability in connection with the
|
||||||
|
Program, unless a warranty or assumption of liability accompanies a
|
||||||
|
copy of the Program in return for a fee.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
How to Apply These Terms to Your New Programs
|
||||||
|
|
||||||
|
If you develop a new program, and you want it to be of the greatest
|
||||||
|
possible use to the public, the best way to achieve this is to make it
|
||||||
|
free software which everyone can redistribute and change under these terms.
|
||||||
|
|
||||||
|
To do so, attach the following notices to the program. It is safest
|
||||||
|
to attach them to the start of each source file to most effectively
|
||||||
|
state the exclusion of warranty; and each file should have at least
|
||||||
|
the "copyright" line and a pointer to where the full notice is found.
|
||||||
|
|
||||||
|
<one line to give the program's name and a brief idea of what it does.>
|
||||||
|
Copyright (C) <year> <name of author>
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU Affero General Public License as published
|
||||||
|
by the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU Affero General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Affero General Public License
|
||||||
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Also add information on how to contact you by electronic and paper mail.
|
||||||
|
|
||||||
|
If your software can interact with users remotely through a computer
|
||||||
|
network, you should also make sure that it provides a way for users to
|
||||||
|
get its source. For example, if your program is a web application, its
|
||||||
|
interface could display a "Source" link that leads users to an archive
|
||||||
|
of the code. There are many ways you could offer source, and different
|
||||||
|
solutions will be better for different programs; see section 13 for the
|
||||||
|
specific requirements.
|
||||||
|
|
||||||
|
You should also get your employer (if you work as a programmer) or school,
|
||||||
|
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||||
|
For more information on this, and how to apply and follow the GNU AGPL, see
|
||||||
|
<https://www.gnu.org/licenses/>.
|
||||||
@@ -0,0 +1,38 @@
|
|||||||
|
# OpenMMO
|
||||||
|
|
||||||
|
[](https://discord.gg/SQwGXyY2gz)
|
||||||
|
|
||||||
|
## ToC
|
||||||
|
- [Description](#description)
|
||||||
|
- [Modules](#modules)
|
||||||
|
- [Protocol Documentation](#protocol-documentation)
|
||||||
|
- [Docker](#docker)
|
||||||
|
- [License](LICENSE)
|
||||||
|
- [Disclaimer](#disclaimer)
|
||||||
|
|
||||||
|
## Description
|
||||||
|
|
||||||
|
> OpenMMO is currently in development and not yet ready for any real use.
|
||||||
|
|
||||||
|
OpenMMO is an open-source implementation of the PokeMMO server.
|
||||||
|
The goal is it to provide a free and open-source alternative to the PokeMMO server.
|
||||||
|
|
||||||
|
## Modules
|
||||||
|
OpenMMO is split into several modules for better organization and easier documentation.
|
||||||
|
- [common](common/README.md): Common enums and shared utilities used across most modules.
|
||||||
|
- [keys](keys/README.md): A module for generating the keys used by the servers for signing packets and by the client for verifying them.
|
||||||
|
- [patcher](patcher/README.md): A tool for applying patches to the PokeMMO client so that it can connect to OpenMMO.
|
||||||
|
- [protocol](protocol/README.md): Core packet protocol framework with serialization and deserialization.
|
||||||
|
- [protocol.tls](protocol.tls/README.md): TLS-like protocol implementation for secure client-server communication.
|
||||||
|
- [protocol.login](protocol.login/README.md): Login-specific protocol packets and serialization.
|
||||||
|
- [server](server/README.md): Core server framework using Netty for networking and protocol handling.
|
||||||
|
- [server.login](server.login/README.md): Login server implementation with authentication and database integration.
|
||||||
|
|
||||||
|
## Protocol Documentation
|
||||||
|
Detailed specifications and technical documentation for the network protocols used in OpenMMO.
|
||||||
|
|
||||||
|
- [TLS Protocol](docs/protocol/tls/index.md): Custom TLS-like protocol specification with ECDH key exchange, ECDSA authentication, and packet structure diagrams.
|
||||||
|
|
||||||
|
## Disclaimer
|
||||||
|
[PokeMMO](https://pokemmo.eu/) is not affiliated with this project in any way.
|
||||||
|
Hosting/Using a private server might be against the [PokeMMO ToS](https://pokemmo.com/tos/).
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
allprojects {
|
||||||
|
beforeEvaluate {
|
||||||
|
loadEnvFile("${rootDir.absolutePath}/.env")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
fun loadEnvFile(fileName: String) {
|
||||||
|
val file = rootProject.file(fileName)
|
||||||
|
if (file.exists()) {
|
||||||
|
file.forEachLine { line ->
|
||||||
|
if (line.isNotBlank() && !line.startsWith("#")) {
|
||||||
|
val parts = line.split("=", limit = 2)
|
||||||
|
if (parts.size == 2) {
|
||||||
|
System.setProperty(parts[0].trim(), parts[1].trim())
|
||||||
|
} else {
|
||||||
|
throw IllegalArgumentException("Invalid line in env file: $line")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
throw IllegalArgumentException("Env file '$fileName' does not exist.")
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
plugins {
|
||||||
|
`kotlin-dsl`
|
||||||
|
}
|
||||||
|
|
||||||
|
kotlin {
|
||||||
|
jvmToolchain(24)
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
implementation(libs.kotlinGradlePlugin)
|
||||||
|
implementation(libs.spotlessGradlePlugin)
|
||||||
|
implementation(libs.junit5)
|
||||||
|
}
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
dependencyResolutionManagement {
|
||||||
|
@Suppress("UnstableApiUsage")
|
||||||
|
repositories {
|
||||||
|
mavenCentral()
|
||||||
|
}
|
||||||
|
|
||||||
|
versionCatalogs {
|
||||||
|
create("libs") {
|
||||||
|
from(files("../gradle/libs.versions.toml"))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
rootProject.name = "buildSrc"
|
||||||
@@ -0,0 +1,67 @@
|
|||||||
|
package buildsrc.common
|
||||||
|
|
||||||
|
val KEYS_RESOURCE_LOCATION = "src/main/resources"
|
||||||
|
|
||||||
|
tasks.register<Copy>("copyPublicKeyChat") {
|
||||||
|
group = "openmmo"
|
||||||
|
description = "Copy chat keys from \":keys\" to the current projects resources directory"
|
||||||
|
from(project(":keys").tasks.getByName("generateChat").outputs.files) {
|
||||||
|
include("*.public.pem")
|
||||||
|
}
|
||||||
|
into(project.layout.projectDirectory.dir(KEYS_RESOURCE_LOCATION))
|
||||||
|
tasks.getByName("processResources").let { it.mustRunAfter("copyPublicKeyChat") }
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.register<Copy>("copyPrivateKeyChat") {
|
||||||
|
group = "openmmo"
|
||||||
|
description = "Copy chat keys from \":keys\" to the current projects resources directory"
|
||||||
|
from(project(":keys").tasks.getByName("generateChat").outputs.files) {
|
||||||
|
include("*.public.pem")
|
||||||
|
}
|
||||||
|
into(project.layout.projectDirectory.dir(KEYS_RESOURCE_LOCATION))
|
||||||
|
tasks.getByName("processResources").let { it.mustRunAfter("copyPrivateKeyChat") }
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.register("copyKeysChat") {
|
||||||
|
group = "openmmo"
|
||||||
|
description = "Copies all chat keys from \":keys\" to the current projects resources directory"
|
||||||
|
dependsOn("copyPublicKeyChat", "copyPrivateKeyChat")
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.register<Copy>("copyPublicKeyGame") {
|
||||||
|
group = "openmmo"
|
||||||
|
description = "Copy game keys from \":keys\" to the current projects resources directory"
|
||||||
|
from(project(":keys").tasks.getByName("generateGame").outputs.files) {
|
||||||
|
include("*.public.pem")
|
||||||
|
}
|
||||||
|
into(project.layout.projectDirectory.dir(KEYS_RESOURCE_LOCATION))
|
||||||
|
tasks.getByName("processResources").let { it.mustRunAfter("copyPublicKeyGame") }
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.register<Copy>("copyPrivateKeyGame") {
|
||||||
|
group = "openmmo"
|
||||||
|
description = "Copy game keys from \":keys\" to the current projects resources directory"
|
||||||
|
from(project(":keys").tasks.getByName("generateGame").outputs.files) {
|
||||||
|
include("*.private.pem")
|
||||||
|
}
|
||||||
|
into(project.layout.projectDirectory.dir(KEYS_RESOURCE_LOCATION))
|
||||||
|
tasks.getByName("processResources").let { it.mustRunAfter("copyPrivateKeyGame") }
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.register("copyKeysGame") {
|
||||||
|
group = "openmmo"
|
||||||
|
description = "Copies all game keys from \":keys\" to the current projects resources directory"
|
||||||
|
dependsOn("copyPublicKeyGame", "copyPrivateKeyGame")
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.register("copyPublicKeys") {
|
||||||
|
group = "openmmo"
|
||||||
|
description = "Copies all public keys from \":keys\" to the current projects resources directory"
|
||||||
|
dependsOn("copyPublicKeyChat", "copyPublicKeyGame")
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.register("copyKeys") {
|
||||||
|
group = "openmmo"
|
||||||
|
description = "Copies all keys from \":keys\" to the current projects resources directory"
|
||||||
|
dependsOn("copyKeysChat", "copyKeysGame")
|
||||||
|
}
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
package buildsrc.convention
|
||||||
|
|
||||||
|
import org.gradle.api.tasks.testing.logging.TestLogEvent
|
||||||
|
import org.gradle.kotlin.dsl.dependencies
|
||||||
|
import org.gradle.kotlin.dsl.withType
|
||||||
|
|
||||||
|
plugins {
|
||||||
|
kotlin("jvm")
|
||||||
|
}
|
||||||
|
|
||||||
|
kotlin {
|
||||||
|
jvmToolchain(24)
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
testImplementation(kotlin("test"))
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.withType<Test>().configureEach {
|
||||||
|
useJUnitPlatform()
|
||||||
|
|
||||||
|
testLogging {
|
||||||
|
events(
|
||||||
|
TestLogEvent.FAILED,
|
||||||
|
TestLogEvent.PASSED,
|
||||||
|
TestLogEvent.SKIPPED
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
package buildsrc.convention
|
||||||
|
|
||||||
|
import com.diffplug.spotless.LineEnding
|
||||||
|
|
||||||
|
plugins {
|
||||||
|
id("com.diffplug.spotless")
|
||||||
|
}
|
||||||
|
|
||||||
|
spotless {
|
||||||
|
encoding("UTF-8")
|
||||||
|
lineEndings = LineEnding.UNIX
|
||||||
|
kotlinGradle {
|
||||||
|
target("**/*.gradle.kts")
|
||||||
|
ktfmt()
|
||||||
|
trimTrailingWhitespace()
|
||||||
|
endWithNewline()
|
||||||
|
}
|
||||||
|
kotlin {
|
||||||
|
target("**/src/**/*.kt")
|
||||||
|
ktfmt()
|
||||||
|
trimTrailingWhitespace()
|
||||||
|
endWithNewline()
|
||||||
|
}
|
||||||
|
format("misc") {
|
||||||
|
target("**/*.md", "**/*.yml", "**/*.yaml", "**/*.properties")
|
||||||
|
trimTrailingWhitespace()
|
||||||
|
endWithNewline()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.withType<Test> { dependsOn("spotlessCheck") }
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
# Common Module
|
||||||
|
|
||||||
|
The common module contains shared enums and utilities used across most OpenMMO modules.
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
plugins {
|
||||||
|
id("buildsrc.convention.kotlin-jvm")
|
||||||
|
id("buildsrc.convention.spotless")
|
||||||
|
}
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
package de.fiereu.openmmo.common.enums
|
||||||
|
|
||||||
|
enum class Language(
|
||||||
|
val code: String,
|
||||||
|
private val english: String,
|
||||||
|
private val display: String
|
||||||
|
) {
|
||||||
|
EN("en", "english", "English"),
|
||||||
|
FR("fr", "french", "Français"),
|
||||||
|
DE("de", "german", "Deutsch"),
|
||||||
|
ES("es", "spanish", "Español"),
|
||||||
|
PT("pt", "portuguese", "Português"),
|
||||||
|
IT("it", "italian", "Italiano"),
|
||||||
|
NL("nl", "dutch", "Nederlands"),
|
||||||
|
PL("pl", "polish", "Polski"),
|
||||||
|
EL("el", "greek", "Eλληνικá"),
|
||||||
|
TR("tr", "turkish", "Türkçe"),
|
||||||
|
FIL("fil", "filipino", "Filipino"),
|
||||||
|
RU("ru", "russian", "Русский"),
|
||||||
|
KO("ko", "korean", "한국어"),
|
||||||
|
JA("ja", "japanese", "日本語"),
|
||||||
|
CN("cn", "chinese", "简体中文"),
|
||||||
|
OTHER("other", "other", "Other"),
|
||||||
|
;
|
||||||
|
|
||||||
|
companion object {
|
||||||
|
private val codeMap = entries.associateBy { it.code }
|
||||||
|
|
||||||
|
fun fromCode(code: String): Language {
|
||||||
|
return codeMap[code] ?: OTHER
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
services:
|
||||||
|
login-db:
|
||||||
|
image: postgres:latest
|
||||||
|
container_name: login-db
|
||||||
|
restart: unless-stopped
|
||||||
|
environment:
|
||||||
|
POSTGRES_DB: $LOGIN_DB_NAME
|
||||||
|
POSTGRES_USER: $LOGIN_DB_USER
|
||||||
|
POSTGRES_PASSWORD: $LOGIN_DB_PASSWORD
|
||||||
|
ports:
|
||||||
|
- $LOGIN_DB_PORT:5432
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
# JDK Version
|
||||||
|
|
||||||
|
The goal is to use the most recent JDK version that is compatible with the project. As of now, the project is tested and works with JDK 24.
|
||||||
|
This may change in the future, so please check `buildSrc/src/main/kotlin/kotlin-jvm.gradle.kts` for the latest version used in the project.
|
||||||
@@ -0,0 +1,246 @@
|
|||||||
|
# OpenMMO TLS Protocol Specification
|
||||||
|
|
||||||
|
The OpenMMO TLS Protocol is a custom TLS-like implementation designed for secure communication between the PokeMMO client and server. This protocol establishes encrypted communication channels using ECDH key exchange.
|
||||||
|
|
||||||
|
## Protocol Flow
|
||||||
|
|
||||||
|
The TLS handshake follows a 3-packet exchange pattern:
|
||||||
|
|
||||||
|
```mermaid
|
||||||
|
sequenceDiagram
|
||||||
|
participant Client
|
||||||
|
participant Server
|
||||||
|
|
||||||
|
Note over Client,Server: TLS Handshake Phase
|
||||||
|
|
||||||
|
Client->>Server: 1. ClientHello (0x00)
|
||||||
|
Note right of Client: Contains obfuscated timestamp
|
||||||
|
|
||||||
|
Server->>Client: 2. ServerHello (0x01)
|
||||||
|
Note left of Server: Server public key + signature + checksum size
|
||||||
|
|
||||||
|
Note over Client: Checks signature using known root public key<br/>Derives shared secret via ECDH<br/>Switches to secure mode
|
||||||
|
|
||||||
|
Client->>Server: 3. ClientReady (0x02)
|
||||||
|
Note right of Client: Client public key
|
||||||
|
|
||||||
|
Note over Server: Derives shared secret via ECDH<br/>Switches to next protocol
|
||||||
|
|
||||||
|
Note over Client,Server: Secure Communication Established<br/>Switch to Application Protocol (e.g., Login)
|
||||||
|
```
|
||||||
|
|
||||||
|
## Packet Specifications
|
||||||
|
|
||||||
|
### 1. ClientHello Packet (Opcode: 0x00)
|
||||||
|
|
||||||
|
The ClientHello packet initiates the TLS handshake and contains an obfuscated timestamp for replay attack protection.
|
||||||
|
|
||||||
|
```mermaid
|
||||||
|
packet
|
||||||
|
title ClientHello Packet Structure
|
||||||
|
0-63: "Obfuscated Random Key (8 bytes)"
|
||||||
|
64-127: "Obfuscated Timestamp (8 bytes)"
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Field Details
|
||||||
|
- **Obfuscated Random Key**: Random value XOR'd with predefined key1 constant
|
||||||
|
- **Obfuscated Timestamp**: Client timestamp XOR'd with key2 and random key
|
||||||
|
|
||||||
|
#### Obfuscation Algorithm
|
||||||
|
```
|
||||||
|
randomKey = Random.nextLong()
|
||||||
|
xoredRandomKey = randomKey XOR key1
|
||||||
|
xoredTimestamp = timestamp XOR key2 XOR randomKey
|
||||||
|
```
|
||||||
|
|
||||||
|
### 2. ServerHello Packet (Opcode: 0x01)
|
||||||
|
|
||||||
|
The ServerHello packet contains the server's public key, authentication signature, and the checksum algorithm.
|
||||||
|
|
||||||
|
```mermaid
|
||||||
|
packet
|
||||||
|
title ServerHello Packet Structure
|
||||||
|
0-15: "Public Key Length (2 bytes, LE)"
|
||||||
|
16-543: "Server Public Key (variable length, uncompressed point)"
|
||||||
|
544-559: "Signature Length (2 bytes, LE)"
|
||||||
|
560-1071: "ECDSA Signature (variable length)"
|
||||||
|
1072-1079: "Checksum Size (1 byte)"
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Field Details
|
||||||
|
- **Public Key Length**: Length of the public key data (typically 65 bytes)
|
||||||
|
- **Server Public Key**: ECDSA public key in uncompressed point format (0x04 + X + Y coordinates)
|
||||||
|
- **Signature Length**: Length of the ECDSA signature (typically 64 bytes)
|
||||||
|
- **ECDSA Signature**: Digital signature of the public key using server's root private key
|
||||||
|
- **Checksum Size**: Size of checksums to be used for subsequent packets (16 for HMAC-SHA256)
|
||||||
|
|
||||||
|
### 3. ClientReady Packet (Opcode: 0x02)
|
||||||
|
|
||||||
|
The ClientReady packet completes the handshake by providing the client's public key.
|
||||||
|
|
||||||
|
```mermaid
|
||||||
|
packet
|
||||||
|
title ClientReady Packet Structure
|
||||||
|
0-15: "Public Key Length (2 bytes, LE)"
|
||||||
|
16-535: "Client Public Key (variable length, uncompressed point)"
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Field Details
|
||||||
|
- **Public Key Length**: Length of the client's public key data (typically 65 bytes)
|
||||||
|
- **Client Public Key**: Client's ECDSA public key in uncompressed point format
|
||||||
|
|
||||||
|
## Cryptographic Details
|
||||||
|
|
||||||
|
### Elliptic Curve Parameters
|
||||||
|
- **Curve**: secp256r1 (P-256)
|
||||||
|
- **Key Size**: 256-bit
|
||||||
|
- **Public Key Format**: Uncompressed point (65 bytes: 0x04 + 32-byte X + 32-byte Y)
|
||||||
|
- **Signature Algorithm**: ECDSA with SHA-256
|
||||||
|
|
||||||
|
### Uncompressed Point De/Encoding
|
||||||
|
|
||||||
|
```
|
||||||
|
// Constants
|
||||||
|
UNCOMPRESSED_POINT_INDICATOR = 0x04
|
||||||
|
CURVE = secp256r1 (P-256)
|
||||||
|
KEY_LENGTH = 32 // bytes for secp256r1
|
||||||
|
|
||||||
|
function encode_uncompressed_point(ecPublicKey):
|
||||||
|
point = ecPublicKey.getPoint()
|
||||||
|
x = point.getX().toByteArray()
|
||||||
|
y = point.getY().toByteArray()
|
||||||
|
|
||||||
|
// Create output buffer: 1 byte indicator + 32 bytes X + 32 bytes Y
|
||||||
|
data = new ByteArray(1 + 2 * KEY_LENGTH)
|
||||||
|
offset = 0
|
||||||
|
|
||||||
|
// Set indicator
|
||||||
|
data[offset++] = UNCOMPRESSED_POINT_INDICATOR
|
||||||
|
|
||||||
|
// Handle X coordinate (pad or trim to 32 bytes)
|
||||||
|
if x.length <= KEY_LENGTH:
|
||||||
|
// Right-pad with zeros if too short
|
||||||
|
copyBytes(x, 0, data, offset + KEY_LENGTH - x.length, x.length)
|
||||||
|
else if x.length == KEY_LENGTH + 1 AND x[0] == 0:
|
||||||
|
// Remove leading zero byte if present
|
||||||
|
copyBytes(x, 1, data, offset, KEY_LENGTH)
|
||||||
|
else:
|
||||||
|
throw "X coordinate too large"
|
||||||
|
|
||||||
|
offset += KEY_LENGTH
|
||||||
|
|
||||||
|
// Handle Y coordinate (same logic as X)
|
||||||
|
if y.length <= KEY_LENGTH:
|
||||||
|
copyBytes(y, 0, data, offset + KEY_LENGTH - y.length, y.length)
|
||||||
|
else if y.length == KEY_LENGTH + 1 AND y[0] == 0:
|
||||||
|
copyBytes(y, 1, data, offset, KEY_LENGTH)
|
||||||
|
else:
|
||||||
|
throw "Y coordinate too large"
|
||||||
|
|
||||||
|
return data
|
||||||
|
|
||||||
|
function decode_uncompressed_point(byteArray):
|
||||||
|
// Validate format
|
||||||
|
if byteArray[0] != UNCOMPRESSED_POINT_INDICATOR:
|
||||||
|
throw "Invalid uncompressed point indicator"
|
||||||
|
|
||||||
|
if byteArray.length != 1 + 2 * KEY_LENGTH:
|
||||||
|
throw "Invalid data length"
|
||||||
|
|
||||||
|
offset = 1
|
||||||
|
|
||||||
|
// Extract X coordinate (32 bytes)
|
||||||
|
x = bigIntegerFromBytes(byteArray[offset:offset + KEY_LENGTH])
|
||||||
|
offset += KEY_LENGTH
|
||||||
|
|
||||||
|
// Extract Y coordinate (32 bytes)
|
||||||
|
y = bigIntegerFromBytes(byteArray[offset:offset + KEY_LENGTH])
|
||||||
|
|
||||||
|
// Create EC point and public key
|
||||||
|
point = ECPoint(x, y)
|
||||||
|
return createECPublicKey(point, CURVE_SPEC)
|
||||||
|
```
|
||||||
|
|
||||||
|
### Key Derivation
|
||||||
|
After exchanging public keys, both client and server derive a shared secret using ECDH and generate symmetric encryption keys:
|
||||||
|
|
||||||
|
```
|
||||||
|
// ECDH Key Agreement
|
||||||
|
sharedSecret = ECDH(clientPrivateKey, serverPublicKey) // On client side
|
||||||
|
sharedSecret = ECDH(serverPrivateKey, clientPublicKey) // On server side
|
||||||
|
|
||||||
|
// Key Derivation Constants
|
||||||
|
CLIENT_KEY_SALT = "KeySalt" + 0x01
|
||||||
|
SERVER_KEY_SALT = "KeySalt" + 0x02
|
||||||
|
COMMON_IV_SALT = "IVDERIV"
|
||||||
|
|
||||||
|
function tripleHash(data, salt):
|
||||||
|
hasher = SHA-256()
|
||||||
|
hasher.update(salt)
|
||||||
|
hasher.update(data)
|
||||||
|
hasher.update(salt)
|
||||||
|
digest = hasher.finalize()
|
||||||
|
return digest[0:16] // First 16 bytes for 128-bit AES key
|
||||||
|
|
||||||
|
// Derive Symmetric Keys (if shared secret >= 128 bits)
|
||||||
|
if sharedSecret.length * 8 >= 128:
|
||||||
|
clientSeed = tripleHash(sharedSecret, CLIENT_KEY_SALT)
|
||||||
|
serverSeed = tripleHash(sharedSecret, SERVER_KEY_SALT)
|
||||||
|
else:
|
||||||
|
// Fallback to default seeds
|
||||||
|
clientSeed = defaultClientSeed
|
||||||
|
serverSeed = defaultServerSeed
|
||||||
|
|
||||||
|
// Create AES-CTR Ciphers
|
||||||
|
clientKey = AES_Key(clientSeed)
|
||||||
|
serverKey = AES_Key(serverSeed)
|
||||||
|
clientIV = tripleHash(clientSeed, COMMON_IV_SALT)
|
||||||
|
serverIV = tripleHash(serverSeed, COMMON_IV_SALT)
|
||||||
|
|
||||||
|
// Initialize Ciphers
|
||||||
|
encryptionCipher = AES-CTR(serverKey, serverIV) // Server encrypts with server key
|
||||||
|
decryptionCipher = AES-CTR(clientKey, clientIV) // Server decrypts with client key
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Key Usage
|
||||||
|
- **Client Seed**: Used for client-to-server encryption (server decrypts with this)
|
||||||
|
- **Server Seed**: Used for server-to-client encryption (server encrypts with this)
|
||||||
|
- **AES-CTR Mode**: Stream cipher mode enabling encryption/decryption of arbitrary length data
|
||||||
|
- **IV Derivation**: Initialization vectors derived using the same triple-hash with common salt
|
||||||
|
## Protocol State Machine
|
||||||
|
|
||||||
|
```mermaid
|
||||||
|
stateDiagram-v2
|
||||||
|
[*] --> Handshake: Connection Established<br>All packets are framed with length prefix
|
||||||
|
|
||||||
|
state Handshake {
|
||||||
|
[*] --> WaitingClientHello
|
||||||
|
WaitingClientHello --> WaitingClientReady: Send ServerHello
|
||||||
|
WaitingClientReady --> HandshakeComplete: Receive ClientReady
|
||||||
|
}
|
||||||
|
|
||||||
|
HandshakeComplete --> SecureCommunication: Switch to Application Protocol
|
||||||
|
|
||||||
|
note right of SecureCommunication
|
||||||
|
All subsequent packets are:
|
||||||
|
- Framed with length prefix
|
||||||
|
- Checksummed (CRC16/HMAC-SHA256)
|
||||||
|
- Optionally encrypted
|
||||||
|
end note
|
||||||
|
```
|
||||||
|
|
||||||
|
## Implementation Notes
|
||||||
|
|
||||||
|
### Packet Framing
|
||||||
|
- All packets are prefixed with a length field
|
||||||
|
- No encryption or checksum is applied during the handshake phase
|
||||||
|
|
||||||
|
After the TLS handshake, all subsequent packets use the following format:
|
||||||
|
- Length prefix (variable encoding)
|
||||||
|
- Packet payload (encrypted if in secure mode)
|
||||||
|
- Checksum suffix (size determined by ServerHello)
|
||||||
|
|
||||||
|
### Error Handling
|
||||||
|
- Invalid signatures result in connection termination
|
||||||
|
- Malformed packets trigger protocol violations
|
||||||
|
- Timestamp validation failures indicate potential replay attacks
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
org.gradle.caching=true
|
||||||
|
org.gradle.configuration-cache=true
|
||||||
|
|
||||||
|
# Database settings
|
||||||
|
openmmo.db.login.port=${LOGIN_DB_PORT}
|
||||||
|
openmmo.db.login.name=${LOGIN_DB_NAME}
|
||||||
|
openmmo.db.login.user=${LOGIN_DB_USER}
|
||||||
|
openmmo.db.login.password=${LOGIN_DB_PASSWORD}
|
||||||
|
openmmo.db.game.port=${GAME_DB_PORT}
|
||||||
|
openmmo.db.game.name=${GAME_DB_NAME}
|
||||||
|
openmmo.db.game.user=${GAME_DB_USER}
|
||||||
|
openmmo.db.game.password=${GAME_DB_PASSWORD}
|
||||||
|
|
||||||
|
# PokeMMO constants
|
||||||
|
pokemmo.mainClass=com.pokeemu.client.Client
|
||||||
|
|
||||||
|
# May be overridden by the user
|
||||||
|
pokemmo.executable=${HOME}/.local/share/pokemmo/PokeMMO.exe
|
||||||
|
pokemmo.workingDir=${HOME}/.local/share/pokemmo/
|
||||||
@@ -0,0 +1,64 @@
|
|||||||
|
[versions]
|
||||||
|
kotlin = "2.2.10"
|
||||||
|
kotlinx-serialization = "1.9.0"
|
||||||
|
kotlinx-coroutines = "1.10.2"
|
||||||
|
kotlin-logging = "7.0.7" # sl4j wrapper for Kotlin
|
||||||
|
logback = "1.5.13"
|
||||||
|
slf4j = "2.0.17"
|
||||||
|
asm = "9.8"
|
||||||
|
spotless = "7.2.1"
|
||||||
|
shadow = "9.0.2"
|
||||||
|
bouncycastle = "1.81"
|
||||||
|
junit5 = "6.0.0-M2"
|
||||||
|
kotest = "6.0.0"
|
||||||
|
mockk = "1.14.5"
|
||||||
|
jooq = "3.20.6"
|
||||||
|
postgresql = "42.7.7"
|
||||||
|
flyway = "11.10.4"
|
||||||
|
netty = "4.2.4.Final"
|
||||||
|
typesafe-config = "1.4.4"
|
||||||
|
dagger = "2.57"
|
||||||
|
ksp = "2.2.10-2.0.2"
|
||||||
|
|
||||||
|
[libraries]
|
||||||
|
kotlinGradlePlugin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin" }
|
||||||
|
spotlessGradlePlugin = { module = "com.diffplug.spotless:spotless-plugin-gradle", version.ref = "spotless" }
|
||||||
|
kotlin-reflect = { module = "org.jetbrains.kotlin:kotlin-reflect", version.ref = "kotlin" }
|
||||||
|
kotlinx-serialization-core = { module = "org.jetbrains.kotlinx:kotlinx-serialization-core-jvm", version.ref = "kotlinx-serialization" }
|
||||||
|
kotlinx-serialization-json = { module = "org.jetbrains.kotlinx:kotlinx-serialization-json-jvm", version.ref = "kotlinx-serialization" }
|
||||||
|
kotlinx-coroutines = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "kotlinx-coroutines" }
|
||||||
|
kotlinx-coroutines-test = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-test", version.ref = "kotlinx-coroutines" }
|
||||||
|
kotlin-logging = { module = "io.github.oshai:kotlin-logging-jvm", version.ref = "kotlin-logging" }
|
||||||
|
logback = { module = "ch.qos.logback:logback-classic", version.ref = "logback" }
|
||||||
|
slf4j = { module = "org.slf4j:slf4j-api", version.ref = "slf4j" }
|
||||||
|
asm = { module = "org.ow2.asm:asm", version.ref = "asm" }
|
||||||
|
bouncycastle-pkix = { module = "org.bouncycastle:bcpkix-jdk18on", version.ref = "bouncycastle" }
|
||||||
|
bouncycastle-provider = { module = "org.bouncycastle:bcprov-jdk18on", version.ref = "bouncycastle" }
|
||||||
|
junit5 = { module = "org.junit.jupiter:junit-jupiter-api", version.ref = "junit5" }
|
||||||
|
kotest-core = { module = "io.kotest:kotest-runner-junit5", version.ref = "kotest" }
|
||||||
|
kotest-assertions = { module = "io.kotest:kotest-assertions-core", version.ref = "kotest" }
|
||||||
|
kotest-framework = { module = "io.kotest:kotest-framework-engine", version.ref = "kotest" }
|
||||||
|
jooq = { module = "org.jooq:jooq", version.ref = "jooq" }
|
||||||
|
jooq-kotlin = { module = "org.jooq:jooq-kotlin", version.ref = "jooq" }
|
||||||
|
jooq-meta = { module = "org.jooq:jooq-meta", version.ref = "jooq" }
|
||||||
|
jooq-codegen = { module = "org.jooq:jooq-codegen", version.ref = "jooq" }
|
||||||
|
postgresql = { module = "org.postgresql:postgresql", version.ref = "postgresql" }
|
||||||
|
flyway-core = { module = "org.flywaydb:flyway-core", version.ref = "flyway" }
|
||||||
|
flyway-postgresql = { module = "org.flywaydb:flyway-database-postgresql", version.ref = "flyway" }
|
||||||
|
netty = { module = "io.netty:netty-all", version.ref = "netty" }
|
||||||
|
typesafe-config = { module = "com.typesafe:config", version.ref = "typesafe-config" }
|
||||||
|
dagger = { module = "com.google.dagger:dagger", version.ref = "dagger" }
|
||||||
|
dagger-compiler = { module = "com.google.dagger:dagger-compiler", version.ref = "dagger" }
|
||||||
|
mockk = { module = "io.mockk:mockk", version.ref = "mockk" }
|
||||||
|
|
||||||
|
[bundles]
|
||||||
|
crypto = ["bouncycastle-pkix", "bouncycastle-provider"]
|
||||||
|
jooq = ["jooq", "jooq-kotlin", "jooq-meta", "jooq-codegen"]
|
||||||
|
kotest = ["kotest-core", "kotest-assertions", "kotest-framework"]
|
||||||
|
|
||||||
|
[plugins]
|
||||||
|
kotlin-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
|
||||||
|
shadow = { id = "com.gradleup.shadow", version.ref = "shadow" }
|
||||||
|
jooq = { id = "org.jooq.jooq-codegen-gradle", version.ref = "jooq" }
|
||||||
|
flyway = { id = "org.flywaydb.flyway", version.ref = "flyway" }
|
||||||
|
ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" }
|
||||||
Vendored
BIN
Binary file not shown.
+8
@@ -0,0 +1,8 @@
|
|||||||
|
distributionBase=GRADLE_USER_HOME
|
||||||
|
distributionPath=wrapper/dists
|
||||||
|
distributionUrl=https\://services.gradle.org/distributions/gradle-9.0.0-bin.zip
|
||||||
|
networkTimeout=10000
|
||||||
|
validateDistributionUrl=true
|
||||||
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
|
zipStorePath=wrapper/dists
|
||||||
|
|
||||||
@@ -0,0 +1,251 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
#
|
||||||
|
# Copyright © 2015-2021 the original authors.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# https://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
#
|
||||||
|
|
||||||
|
##############################################################################
|
||||||
|
#
|
||||||
|
# Gradle start up script for POSIX generated by Gradle.
|
||||||
|
#
|
||||||
|
# Important for running:
|
||||||
|
#
|
||||||
|
# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
|
||||||
|
# noncompliant, but you have some other compliant shell such as ksh or
|
||||||
|
# bash, then to run this script, type that shell name before the whole
|
||||||
|
# command line, like:
|
||||||
|
#
|
||||||
|
# ksh Gradle
|
||||||
|
#
|
||||||
|
# Busybox and similar reduced shells will NOT work, because this script
|
||||||
|
# requires all of these POSIX shell features:
|
||||||
|
# * functions;
|
||||||
|
# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
|
||||||
|
# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
|
||||||
|
# * compound commands having a testable exit status, especially «case»;
|
||||||
|
# * various built-in commands including «command», «set», and «ulimit».
|
||||||
|
#
|
||||||
|
# Important for patching:
|
||||||
|
#
|
||||||
|
# (2) This script targets any POSIX shell, so it avoids extensions provided
|
||||||
|
# by Bash, Ksh, etc; in particular arrays are avoided.
|
||||||
|
#
|
||||||
|
# The "traditional" practice of packing multiple parameters into a
|
||||||
|
# space-separated string is a well documented source of bugs and security
|
||||||
|
# problems, so this is (mostly) avoided, by progressively accumulating
|
||||||
|
# options in "$@", and eventually passing that to Java.
|
||||||
|
#
|
||||||
|
# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
|
||||||
|
# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
|
||||||
|
# see the in-line comments for details.
|
||||||
|
#
|
||||||
|
# There are tweaks for specific operating systems such as AIX, CygWin,
|
||||||
|
# Darwin, MinGW, and NonStop.
|
||||||
|
#
|
||||||
|
# (3) This script is generated from the Groovy template
|
||||||
|
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
|
||||||
|
# within the Gradle project.
|
||||||
|
#
|
||||||
|
# You can find Gradle at https://github.com/gradle/gradle/.
|
||||||
|
#
|
||||||
|
##############################################################################
|
||||||
|
|
||||||
|
# Attempt to set APP_HOME
|
||||||
|
|
||||||
|
# Resolve links: $0 may be a link
|
||||||
|
app_path=$0
|
||||||
|
|
||||||
|
# Need this for daisy-chained symlinks.
|
||||||
|
while
|
||||||
|
APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
|
||||||
|
[ -h "$app_path" ]
|
||||||
|
do
|
||||||
|
ls=$( ls -ld "$app_path" )
|
||||||
|
link=${ls#*' -> '}
|
||||||
|
case $link in #(
|
||||||
|
/*) app_path=$link ;; #(
|
||||||
|
*) app_path=$APP_HOME$link ;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
# This is normally unused
|
||||||
|
# shellcheck disable=SC2034
|
||||||
|
APP_BASE_NAME=${0##*/}
|
||||||
|
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
|
||||||
|
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit
|
||||||
|
|
||||||
|
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
||||||
|
MAX_FD=maximum
|
||||||
|
|
||||||
|
warn () {
|
||||||
|
echo "$*"
|
||||||
|
} >&2
|
||||||
|
|
||||||
|
die () {
|
||||||
|
echo
|
||||||
|
echo "$*"
|
||||||
|
echo
|
||||||
|
exit 1
|
||||||
|
} >&2
|
||||||
|
|
||||||
|
# OS specific support (must be 'true' or 'false').
|
||||||
|
cygwin=false
|
||||||
|
msys=false
|
||||||
|
darwin=false
|
||||||
|
nonstop=false
|
||||||
|
case "$( uname )" in #(
|
||||||
|
CYGWIN* ) cygwin=true ;; #(
|
||||||
|
Darwin* ) darwin=true ;; #(
|
||||||
|
MSYS* | MINGW* ) msys=true ;; #(
|
||||||
|
NONSTOP* ) nonstop=true ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
|
||||||
|
|
||||||
|
|
||||||
|
# Determine the Java command to use to start the JVM.
|
||||||
|
if [ -n "$JAVA_HOME" ] ; then
|
||||||
|
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
|
||||||
|
# IBM's JDK on AIX uses strange locations for the executables
|
||||||
|
JAVACMD=$JAVA_HOME/jre/sh/java
|
||||||
|
else
|
||||||
|
JAVACMD=$JAVA_HOME/bin/java
|
||||||
|
fi
|
||||||
|
if [ ! -x "$JAVACMD" ] ; then
|
||||||
|
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
|
||||||
|
|
||||||
|
Please set the JAVA_HOME variable in your environment to match the
|
||||||
|
location of your Java installation."
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
JAVACMD=java
|
||||||
|
if ! command -v java >/dev/null 2>&1
|
||||||
|
then
|
||||||
|
die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
||||||
|
|
||||||
|
Please set the JAVA_HOME variable in your environment to match the
|
||||||
|
location of your Java installation."
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Increase the maximum file descriptors if we can.
|
||||||
|
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
|
||||||
|
case $MAX_FD in #(
|
||||||
|
max*)
|
||||||
|
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
|
||||||
|
# shellcheck disable=SC2039,SC3045
|
||||||
|
MAX_FD=$( ulimit -H -n ) ||
|
||||||
|
warn "Could not query maximum file descriptor limit"
|
||||||
|
esac
|
||||||
|
case $MAX_FD in #(
|
||||||
|
'' | soft) :;; #(
|
||||||
|
*)
|
||||||
|
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
|
||||||
|
# shellcheck disable=SC2039,SC3045
|
||||||
|
ulimit -n "$MAX_FD" ||
|
||||||
|
warn "Could not set maximum file descriptor limit to $MAX_FD"
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Collect all arguments for the java command, stacking in reverse order:
|
||||||
|
# * args from the command line
|
||||||
|
# * the main class name
|
||||||
|
# * -classpath
|
||||||
|
# * -D...appname settings
|
||||||
|
# * --module-path (only if needed)
|
||||||
|
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
|
||||||
|
|
||||||
|
# For Cygwin or MSYS, switch paths to Windows format before running java
|
||||||
|
if "$cygwin" || "$msys" ; then
|
||||||
|
APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
|
||||||
|
CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
|
||||||
|
|
||||||
|
JAVACMD=$( cygpath --unix "$JAVACMD" )
|
||||||
|
|
||||||
|
# Now convert the arguments - kludge to limit ourselves to /bin/sh
|
||||||
|
for arg do
|
||||||
|
if
|
||||||
|
case $arg in #(
|
||||||
|
-*) false ;; # don't mess with options #(
|
||||||
|
/?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
|
||||||
|
[ -e "$t" ] ;; #(
|
||||||
|
*) false ;;
|
||||||
|
esac
|
||||||
|
then
|
||||||
|
arg=$( cygpath --path --ignore --mixed "$arg" )
|
||||||
|
fi
|
||||||
|
# Roll the args list around exactly as many times as the number of
|
||||||
|
# args, so each arg winds up back in the position where it started, but
|
||||||
|
# possibly modified.
|
||||||
|
#
|
||||||
|
# NB: a `for` loop captures its iteration list before it begins, so
|
||||||
|
# changing the positional parameters here affects neither the number of
|
||||||
|
# iterations, nor the values presented in `arg`.
|
||||||
|
shift # remove old arg
|
||||||
|
set -- "$@" "$arg" # push replacement arg
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||||
|
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
||||||
|
|
||||||
|
# Collect all arguments for the java command:
|
||||||
|
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
|
||||||
|
# and any embedded shellness will be escaped.
|
||||||
|
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
|
||||||
|
# treated as '${Hostname}' itself on the command line.
|
||||||
|
|
||||||
|
set -- \
|
||||||
|
"-Dorg.gradle.appname=$APP_BASE_NAME" \
|
||||||
|
-classpath "$CLASSPATH" \
|
||||||
|
org.gradle.wrapper.GradleWrapperMain \
|
||||||
|
"$@"
|
||||||
|
|
||||||
|
# Stop when "xargs" is not available.
|
||||||
|
if ! command -v xargs >/dev/null 2>&1
|
||||||
|
then
|
||||||
|
die "xargs is not available"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Use "xargs" to parse quoted args.
|
||||||
|
#
|
||||||
|
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
|
||||||
|
#
|
||||||
|
# In Bash we could simply go:
|
||||||
|
#
|
||||||
|
# readarray ARGS < <( xargs -n1 <<<"$var" ) &&
|
||||||
|
# set -- "${ARGS[@]}" "$@"
|
||||||
|
#
|
||||||
|
# but POSIX shell has neither arrays nor command substitution, so instead we
|
||||||
|
# post-process each arg (as a line of input to sed) to backslash-escape any
|
||||||
|
# character that might be a shell metacharacter, then use eval to reverse
|
||||||
|
# that process (while maintaining the separation between arguments), and wrap
|
||||||
|
# the whole thing up as a single "set" statement.
|
||||||
|
#
|
||||||
|
# This will of course break if any of these variables contains a newline or
|
||||||
|
# an unmatched quote.
|
||||||
|
#
|
||||||
|
|
||||||
|
eval "set -- $(
|
||||||
|
printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
|
||||||
|
xargs -n1 |
|
||||||
|
sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
|
||||||
|
tr '\n' ' '
|
||||||
|
)" '"$@"'
|
||||||
|
|
||||||
|
exec "$JAVACMD" "$@"
|
||||||
Vendored
+94
@@ -0,0 +1,94 @@
|
|||||||
|
@rem
|
||||||
|
@rem Copyright 2015 the original author or authors.
|
||||||
|
@rem
|
||||||
|
@rem Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
@rem you may not use this file except in compliance with the License.
|
||||||
|
@rem You may obtain a copy of the License at
|
||||||
|
@rem
|
||||||
|
@rem https://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
@rem
|
||||||
|
@rem Unless required by applicable law or agreed to in writing, software
|
||||||
|
@rem distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
@rem See the License for the specific language governing permissions and
|
||||||
|
@rem limitations under the License.
|
||||||
|
@rem
|
||||||
|
@rem SPDX-License-Identifier: Apache-2.0
|
||||||
|
@rem
|
||||||
|
|
||||||
|
@if "%DEBUG%"=="" @echo off
|
||||||
|
@rem ##########################################################################
|
||||||
|
@rem
|
||||||
|
@rem Gradle startup script for Windows
|
||||||
|
@rem
|
||||||
|
@rem ##########################################################################
|
||||||
|
|
||||||
|
@rem Set local scope for the variables with windows NT shell
|
||||||
|
if "%OS%"=="Windows_NT" setlocal
|
||||||
|
|
||||||
|
set DIRNAME=%~dp0
|
||||||
|
if "%DIRNAME%"=="" set DIRNAME=.
|
||||||
|
@rem This is normally unused
|
||||||
|
set APP_BASE_NAME=%~n0
|
||||||
|
set APP_HOME=%DIRNAME%
|
||||||
|
|
||||||
|
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
|
||||||
|
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
|
||||||
|
|
||||||
|
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||||
|
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
|
||||||
|
|
||||||
|
@rem Find java.exe
|
||||||
|
if defined JAVA_HOME goto findJavaFromJavaHome
|
||||||
|
|
||||||
|
set JAVA_EXE=java.exe
|
||||||
|
%JAVA_EXE% -version >NUL 2>&1
|
||||||
|
if %ERRORLEVEL% equ 0 goto execute
|
||||||
|
|
||||||
|
echo. 1>&2
|
||||||
|
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
|
||||||
|
echo. 1>&2
|
||||||
|
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
|
||||||
|
echo location of your Java installation. 1>&2
|
||||||
|
|
||||||
|
goto fail
|
||||||
|
|
||||||
|
:findJavaFromJavaHome
|
||||||
|
set JAVA_HOME=%JAVA_HOME:"=%
|
||||||
|
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
|
||||||
|
|
||||||
|
if exist "%JAVA_EXE%" goto execute
|
||||||
|
|
||||||
|
echo. 1>&2
|
||||||
|
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
|
||||||
|
echo. 1>&2
|
||||||
|
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
|
||||||
|
echo location of your Java installation. 1>&2
|
||||||
|
|
||||||
|
goto fail
|
||||||
|
|
||||||
|
:execute
|
||||||
|
@rem Setup the command line
|
||||||
|
|
||||||
|
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
|
||||||
|
|
||||||
|
|
||||||
|
@rem Execute Gradle
|
||||||
|
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
|
||||||
|
|
||||||
|
:end
|
||||||
|
@rem End local scope for the variables with windows NT shell
|
||||||
|
if %ERRORLEVEL% equ 0 goto mainEnd
|
||||||
|
|
||||||
|
:fail
|
||||||
|
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
|
||||||
|
rem the _cmd.exe /c_ return code!
|
||||||
|
set EXIT_CODE=%ERRORLEVEL%
|
||||||
|
if %EXIT_CODE% equ 0 set EXIT_CODE=1
|
||||||
|
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
|
||||||
|
exit /b %EXIT_CODE%
|
||||||
|
|
||||||
|
:mainEnd
|
||||||
|
if "%OS%"=="Windows_NT" endlocal
|
||||||
|
|
||||||
|
:omega
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
build/*.pem
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
# Keys (OpenMMO)
|
||||||
|
|
||||||
|
## ToC
|
||||||
|
- [Description](#description)
|
||||||
|
- [How to Use](#how-to-use)
|
||||||
|
- [How It Works](#how-it-works)
|
||||||
|
|
||||||
|
## Description
|
||||||
|
The keys module is responsible for generating the keys used by the servers for signing packets and by the client for verifying them.
|
||||||
|
It generates the public keys that are later used by the patcher module to replace the client's public keys.
|
||||||
|
|
||||||
|
> Generated keys are specifically excluded from git commits using `.gitignore` and should not be committed.
|
||||||
|
|
||||||
|
## How to Use
|
||||||
|
Normally, you don't need to worry about this module, as it is automatically called by all depending modules.
|
||||||
|
However, if you want to generate the keys manually, you can do so by running the `generateKeys` task in Gradle.
|
||||||
|
This will generate the keys and place them in the `build/` directory of the module.
|
||||||
|
|
||||||
|
Currently, there are only two key pairs generated:
|
||||||
|
- `game`: The key pair used for signing game packets by the login and game servers.
|
||||||
|
- `chat`: The key pair used for signing chat packets by the chat server.
|
||||||
|
|
||||||
|
## How It Works
|
||||||
|
The build script used [cryptography-kotlin](https://github.com/whyoleg/cryptography-kotlin) to generate the keypairs.
|
||||||
|
`cryptography-kotlin` is a Kotlin wrapper around libraries like OpenSSL and just provides us a simple API to generate the keys.
|
||||||
|
|
||||||
|
### Key Generation
|
||||||
|
Keys are generated using the `ECDSA` algorithm with the `secp256r1` curve. Generated keys are saved in PEM format.
|
||||||
@@ -0,0 +1,90 @@
|
|||||||
|
import org.bouncycastle.util.io.pem.PemObject
|
||||||
|
import org.bouncycastle.util.io.pem.PemWriter
|
||||||
|
import java.security.KeyPairGenerator
|
||||||
|
import java.security.spec.ECGenParameterSpec
|
||||||
|
import java.io.StringWriter
|
||||||
|
|
||||||
|
buildscript {
|
||||||
|
repositories {
|
||||||
|
mavenCentral()
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
classpath(libs.bundles.crypto)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
plugins {
|
||||||
|
id("buildsrc.convention.spotless")
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Abstract task for generating a certificate.
|
||||||
|
*/
|
||||||
|
abstract class GenerateCertificateTask : DefaultTask() {
|
||||||
|
|
||||||
|
@get:OutputFile
|
||||||
|
val privateKeyOutput: RegularFileProperty = project.objects.fileProperty()
|
||||||
|
|
||||||
|
@get:OutputFile
|
||||||
|
val publicKeyOutput: RegularFileProperty = project.objects.fileProperty()
|
||||||
|
|
||||||
|
@get:Input
|
||||||
|
val overwriteCertificates: Property<Boolean> = project.objects.property(Boolean::class.java)
|
||||||
|
.convention(false)
|
||||||
|
|
||||||
|
init {
|
||||||
|
group = "openmmo"
|
||||||
|
outputs.upToDateWhen { !overwriteCertificates.get() }
|
||||||
|
}
|
||||||
|
|
||||||
|
@TaskAction
|
||||||
|
open fun generate() {
|
||||||
|
val publicKeyFile = publicKeyOutput.get().asFile
|
||||||
|
val privateKeyFile = privateKeyOutput.get().asFile
|
||||||
|
if (!overwriteCertificates.get() && (publicKeyFile.exists() || privateKeyFile.exists())) {
|
||||||
|
logger.warn("Keys already exist. Use 'overwriteCertificates' to overwrite them.")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// Generate ECDSA key pair using secp256r1 curve
|
||||||
|
val keyPairGenerator = KeyPairGenerator.getInstance("EC")
|
||||||
|
keyPairGenerator.initialize(ECGenParameterSpec("secp256r1"))
|
||||||
|
val keyPair = keyPairGenerator.generateKeyPair()
|
||||||
|
|
||||||
|
// Write private key as PEM
|
||||||
|
val privateKeyPem = StringWriter().use { writer ->
|
||||||
|
PemWriter(writer).use { pemWriter ->
|
||||||
|
pemWriter.writeObject(PemObject("EC PRIVATE KEY", keyPair.private.encoded))
|
||||||
|
}
|
||||||
|
writer.toString()
|
||||||
|
}
|
||||||
|
privateKeyFile.writeText(privateKeyPem)
|
||||||
|
|
||||||
|
// Write public key as PEM
|
||||||
|
val publicKeyPem = StringWriter().use { writer ->
|
||||||
|
PemWriter(writer).use { pemWriter ->
|
||||||
|
pemWriter.writeObject(PemObject("PUBLIC KEY", keyPair.public.encoded))
|
||||||
|
}
|
||||||
|
writer.toString()
|
||||||
|
}
|
||||||
|
publicKeyFile.writeText(publicKeyPem)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.register<GenerateCertificateTask>("generateGame") {
|
||||||
|
description = "Generates a key pair for the login and game servers."
|
||||||
|
privateKeyOutput.set(layout.buildDirectory.file("game.private.pem"))
|
||||||
|
publicKeyOutput.set(layout.buildDirectory.file("game.public.pem"))
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.register<GenerateCertificateTask>("generateChat") {
|
||||||
|
description = "Generates a key pair for the chat server."
|
||||||
|
privateKeyOutput.set(layout.buildDirectory.file("chat.private.pem"))
|
||||||
|
publicKeyOutput.set(layout.buildDirectory.file("chat.public.pem"))
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.register("generate") {
|
||||||
|
group = "openmmo"
|
||||||
|
dependsOn("generateGame", "generateChat")
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
Removed on request of pokemmo.eu.
|
||||||
|
Date: 2026-08-17
|
||||||
|
Nonce: 02298e034dbe43c8806519586565af31
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
Removed on request of pokemmo.eu.
|
||||||
|
Date: 2026-08-17
|
||||||
|
Nonce: 666b997e54fb4de89c7bf8c413e73791
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
Removed on request of pokemmo.eu.
|
||||||
|
Date: 2026-08-17
|
||||||
|
Nonce: 0485ce0df8a74237b94853f3ed55fd38
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
Removed on request of pokemmo.eu.
|
||||||
|
Date: 2026-08-17
|
||||||
|
Nonce: 746fedca4ccc49109f8f64ba0b924c6e
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
Removed on request of pokemmo.eu.
|
||||||
|
Date: 2026-08-17
|
||||||
|
Nonce: 60353ee805a94b4190c1042e7f9288fe
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
Removed on request of pokemmo.eu.
|
||||||
|
Date: 2026-08-17
|
||||||
|
Nonce: 41c150695ef247af96e948424c0c699b
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
# Protocol.Login Module
|
||||||
|
|
||||||
|
The protocol.login module implements login-specific protocol packets and serialization for OpenMMO authentication.
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
plugins {
|
||||||
|
id("buildsrc.convention.kotlin-jvm")
|
||||||
|
id("buildsrc.convention.spotless")
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
api(project(":protocol"))
|
||||||
|
api(project(":common"))
|
||||||
|
|
||||||
|
testImplementation(libs.bundles.kotest)
|
||||||
|
}
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
package de.fiereu.openmmo.protocols.tls
|
||||||
|
|
||||||
|
import de.fiereu.openmmo.protocols.Protocol
|
||||||
|
import de.fiereu.openmmo.protocols.incomingPacket
|
||||||
|
import de.fiereu.openmmo.protocols.outgoingPacket
|
||||||
|
import de.fiereu.openmmo.protocols.tls.packets.LoginRequestPacket
|
||||||
|
import de.fiereu.openmmo.protocols.tls.packets.LoginRequestPacketDeserializer
|
||||||
|
import de.fiereu.openmmo.protocols.tls.packets.LoginRequestPacketSerializer
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Login Protocol implementation.
|
||||||
|
* This protocol handles the login process after the TLS handshake is complete.
|
||||||
|
*/
|
||||||
|
abstract class LoginProtocol() : Protocol() {
|
||||||
|
override val async: Boolean
|
||||||
|
get() = true
|
||||||
|
}
|
||||||
|
|
||||||
|
class LoginServerProtocol() : LoginProtocol() {
|
||||||
|
init {
|
||||||
|
incomingPacket(0x11u, LoginRequestPacketDeserializer())
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class LoginClientProtocol() : LoginProtocol() {
|
||||||
|
init {
|
||||||
|
outgoingPacket(0x11u, LoginRequestPacket::class, LoginRequestPacketSerializer())
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
+105
@@ -0,0 +1,105 @@
|
|||||||
|
package de.fiereu.openmmo.protocols.tls.packets
|
||||||
|
|
||||||
|
import de.fiereu.openmmo.common.enums.Language
|
||||||
|
import de.fiereu.openmmo.protocols.PacketDeserializer
|
||||||
|
import de.fiereu.openmmo.protocols.PacketSerializer
|
||||||
|
import de.fiereu.openmmo.protocols.readUtf16LE
|
||||||
|
import de.fiereu.openmmo.protocols.writeUtf16LE
|
||||||
|
|
||||||
|
interface LoginMethod
|
||||||
|
|
||||||
|
data class PasswordLogin(val password: String, val stayLoggedIn: Boolean) : LoginMethod
|
||||||
|
data class TokenLogin(val token: ByteArray) : LoginMethod
|
||||||
|
|
||||||
|
data class LoginRequestPacket(
|
||||||
|
val username: String,
|
||||||
|
val manualLogin: Boolean,
|
||||||
|
val hwid: ByteArray,
|
||||||
|
val method: LoginMethod,
|
||||||
|
val language: Language,
|
||||||
|
val clientRevision: Int,
|
||||||
|
val installationRevision: Int,
|
||||||
|
val os: UByte,
|
||||||
|
val hardwareInfoCache: ByteArray
|
||||||
|
)
|
||||||
|
|
||||||
|
class LoginRequestPacketSerializer : PacketSerializer<LoginRequestPacket> {
|
||||||
|
override fun serialize(packet: LoginRequestPacket, buffer: io.netty.buffer.ByteBuf) {
|
||||||
|
buffer.writeUtf16LE(packet.username)
|
||||||
|
buffer.writeBoolean(packet.manualLogin)
|
||||||
|
buffer.writeByte(packet.hwid.size)
|
||||||
|
buffer.writeBytes(packet.hwid)
|
||||||
|
|
||||||
|
when (packet.method) {
|
||||||
|
is PasswordLogin -> {
|
||||||
|
buffer.writeByte(0) // Method type: Password
|
||||||
|
buffer.writeUtf16LE(packet.method.password)
|
||||||
|
buffer.writeBoolean(packet.method.stayLoggedIn)
|
||||||
|
}
|
||||||
|
is TokenLogin -> {
|
||||||
|
buffer.writeByte(1) // Method type: Token
|
||||||
|
buffer.writeByte(packet.method.token.size)
|
||||||
|
buffer.writeBytes(packet.method.token)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
buffer.writeUtf16LE(packet.language.code)
|
||||||
|
buffer.writeIntLE(packet.clientRevision)
|
||||||
|
buffer.writeIntLE(packet.installationRevision)
|
||||||
|
buffer.writeByte(packet.os.toInt())
|
||||||
|
buffer.writeByte(packet.hardwareInfoCache.size)
|
||||||
|
buffer.writeBytes(packet.hardwareInfoCache)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class LoginRequestPacketDeserializer : PacketDeserializer<LoginRequestPacket> {
|
||||||
|
override fun deserialize(buffer: io.netty.buffer.ByteBuf): LoginRequestPacket {
|
||||||
|
val username = buffer.readUtf16LE()
|
||||||
|
val manualLogin = buffer.readBoolean()
|
||||||
|
|
||||||
|
val hwidSize = buffer.readUnsignedByte().toInt()
|
||||||
|
val hwid = ByteArray(hwidSize)
|
||||||
|
buffer.readBytes(hwid)
|
||||||
|
|
||||||
|
val methodType = buffer.readByte().toInt()
|
||||||
|
val method: LoginMethod = when (methodType) {
|
||||||
|
0 -> { // Password
|
||||||
|
val password = buffer.readUtf16LE()
|
||||||
|
val stayLoggedIn = buffer.readBoolean()
|
||||||
|
PasswordLogin(password, stayLoggedIn)
|
||||||
|
}
|
||||||
|
|
||||||
|
1 -> { // Token
|
||||||
|
val tokenSize = buffer.readUnsignedByte().toInt()
|
||||||
|
val token = ByteArray(tokenSize)
|
||||||
|
buffer.readBytes(token)
|
||||||
|
TokenLogin(token)
|
||||||
|
}
|
||||||
|
|
||||||
|
else -> throw IllegalArgumentException("Unknown login method type: $methodType")
|
||||||
|
}
|
||||||
|
|
||||||
|
val languageCode = buffer.readUtf16LE()
|
||||||
|
val language = Language.fromCode(languageCode)
|
||||||
|
|
||||||
|
val clientRevision = buffer.readIntLE()
|
||||||
|
val installationRevision = buffer.readIntLE()
|
||||||
|
val os = buffer.readUnsignedByte().toUByte()
|
||||||
|
|
||||||
|
val hardwareInfoCacheSize = buffer.readUnsignedByte().toInt()
|
||||||
|
val hardwareInfoCache = ByteArray(hardwareInfoCacheSize)
|
||||||
|
buffer.readBytes(hardwareInfoCache)
|
||||||
|
|
||||||
|
return LoginRequestPacket(
|
||||||
|
username,
|
||||||
|
manualLogin,
|
||||||
|
hwid,
|
||||||
|
method,
|
||||||
|
language,
|
||||||
|
clientRevision,
|
||||||
|
installationRevision,
|
||||||
|
os,
|
||||||
|
hardwareInfoCache
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
# Protocol.TLS Module
|
||||||
|
|
||||||
|
The protocol.tls module implements a custom TLS-like protocol for secure client-server communication in OpenMMO.
|
||||||
|
|
||||||
|
## Contents
|
||||||
|
|
||||||
|
### Core Classes
|
||||||
|
- **TlsProtocol**: Abstract base protocol for TLS handshake implementation
|
||||||
|
- **TlsServerProtocol**: Server-side TLS protocol implementation
|
||||||
|
- **TlsClientProtocol**: Client-side TLS protocol implementation
|
||||||
|
|
||||||
|
### Packet Types
|
||||||
|
- **ClientHelloPacket**: Initial handshake packet sent by client
|
||||||
|
- **ServerHelloPacket**: Server response containing server's public key
|
||||||
|
- **ClientReadyPacket**: Client confirmation with client's public key
|
||||||
|
|
||||||
|
### Cryptographic Features
|
||||||
|
- **ECKeyExtensions**: Extensions for elliptic curve key operations
|
||||||
|
- ECDH key exchange for shared secret derivation
|
||||||
|
- Secure communication setup using ECDSA key pairs
|
||||||
|
|
||||||
|
## Protocol Flow
|
||||||
|
1. Client sends `ClientHello` to initiate handshake
|
||||||
|
2. Server responds with `ServerHello` containing its public key
|
||||||
|
3. Client derives shared secret using ECDH and switches to secure mode
|
||||||
|
4. Client sends `ClientReady` with its public key
|
||||||
|
5. Server derives shared secret and switches to next protocol (e.g., LoginProtocol)
|
||||||
|
|
||||||
|
## Dependencies
|
||||||
|
- Protocol module for base framework
|
||||||
|
- BouncyCastle crypto libraries for cryptographic operations
|
||||||
|
- Kotest for testing
|
||||||
|
|
||||||
|
## Security
|
||||||
|
This module implements a custom TLS-like protocol specifically designed for PokeMMO server compatibility, using ECDSA with secp256r1 curve for key exchange and authentication.
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
plugins {
|
||||||
|
id("buildsrc.convention.kotlin-jvm")
|
||||||
|
id("buildsrc.convention.spotless")
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
api(project(":protocol"))
|
||||||
|
api(libs.bundles.crypto)
|
||||||
|
|
||||||
|
testImplementation(libs.bundles.kotest)
|
||||||
|
}
|
||||||
@@ -0,0 +1,46 @@
|
|||||||
|
package de.fiereu.openmmo.protocols.tls
|
||||||
|
|
||||||
|
import de.fiereu.openmmo.protocols.Protocol
|
||||||
|
import de.fiereu.openmmo.protocols.incomingPacket
|
||||||
|
import de.fiereu.openmmo.protocols.outgoingPacket
|
||||||
|
import de.fiereu.openmmo.protocols.tls.packets.*
|
||||||
|
import java.security.interfaces.ECPrivateKey
|
||||||
|
import java.security.interfaces.ECPublicKey
|
||||||
|
|
||||||
|
/**
|
||||||
|
* TLS Protocol implementation.
|
||||||
|
* This protocol handles the initial TLS handshake before any secure communication can take place.
|
||||||
|
*
|
||||||
|
* The flow is as follows:
|
||||||
|
* 1. Client sends a ClientHello packet to initiate the handshake.
|
||||||
|
* 2. Server responds with a ServerHello packet.
|
||||||
|
* -> The client knows the servers public key and its own private key. And it can derive a shared secret using ECDH.
|
||||||
|
* -> Every packet the client now would receive is expected to be secured.
|
||||||
|
* -> Client switches to next protocol (e.g. LoginProtocol) after the handshake is complete.
|
||||||
|
* 3. Client sends a ClientReady packet with its public key.
|
||||||
|
* -> The server can now secure its communication with the client using the shared secret.
|
||||||
|
* -> Server switches to next protocol (e.g. LoginProtocol) after the handshake is complete.
|
||||||
|
*/
|
||||||
|
abstract class TlsProtocol() : Protocol() {
|
||||||
|
override val async: Boolean
|
||||||
|
get() = false
|
||||||
|
}
|
||||||
|
|
||||||
|
class TlsServerProtocol(
|
||||||
|
serverKeyPair: Pair<ECPrivateKey, ECPublicKey>
|
||||||
|
) : TlsProtocol() {
|
||||||
|
init {
|
||||||
|
incomingPacket(0x00u, ClientHelloPacketDeserializer())
|
||||||
|
outgoingPacket(0x01u, ServerHelloPacket::class, ServerHelloPacketSerializer(serverKeyPair.first))
|
||||||
|
incomingPacket(0x02u, ClientReadyPacketDeserializer())
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class TlsClientProtocol() : TlsProtocol() {
|
||||||
|
init {
|
||||||
|
outgoingPacket(0x00u, ClientHelloPacket::class, ClientHelloPacketSerializer())
|
||||||
|
incomingPacket(0x01u, ServerHelloPacketDeserializer())
|
||||||
|
outgoingPacket(0x02u, ClientReadyPacket::class, ClientReadyPacketSerializer())
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
+37
@@ -0,0 +1,37 @@
|
|||||||
|
package de.fiereu.openmmo.protocols.tls.packets
|
||||||
|
|
||||||
|
import de.fiereu.openmmo.protocols.PacketDeserializer
|
||||||
|
import de.fiereu.openmmo.protocols.PacketSerializer
|
||||||
|
import io.netty.buffer.ByteBuf
|
||||||
|
import kotlin.random.Random
|
||||||
|
|
||||||
|
private const val key1 = 3214621489648854472L
|
||||||
|
private const val key2 = -4214651440992349575L
|
||||||
|
|
||||||
|
data class ClientHelloPacket(val timestamp: Long)
|
||||||
|
|
||||||
|
class ClientHelloPacketSerializer : PacketSerializer<ClientHelloPacket> {
|
||||||
|
|
||||||
|
override fun serialize(packet: ClientHelloPacket, buffer: ByteBuf) {
|
||||||
|
val randomKey = Random.nextLong()
|
||||||
|
|
||||||
|
val xoredRandomKey = randomKey xor key1
|
||||||
|
val xoredTimestamp = packet.timestamp xor key2 xor randomKey
|
||||||
|
|
||||||
|
buffer.writeLongLE(xoredRandomKey)
|
||||||
|
buffer.writeLongLE(xoredTimestamp)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class ClientHelloPacketDeserializer : PacketDeserializer<ClientHelloPacket> {
|
||||||
|
|
||||||
|
override fun deserialize(buffer: ByteBuf): ClientHelloPacket {
|
||||||
|
val xoredRandomKey = buffer.readLongLE()
|
||||||
|
val xoredTimestamp = buffer.readLongLE()
|
||||||
|
|
||||||
|
val randomKey = xoredRandomKey xor key1
|
||||||
|
val timestamp = xoredTimestamp xor key2 xor randomKey
|
||||||
|
|
||||||
|
return ClientHelloPacket(timestamp)
|
||||||
|
}
|
||||||
|
}
|
||||||
+34
@@ -0,0 +1,34 @@
|
|||||||
|
package de.fiereu.openmmo.protocols.tls.packets
|
||||||
|
|
||||||
|
import de.fiereu.openmmo.protocols.PacketDeserializer
|
||||||
|
import de.fiereu.openmmo.protocols.PacketSerializer
|
||||||
|
import de.fiereu.openmmo.protocols.tls.util.toECPublicKey
|
||||||
|
import de.fiereu.openmmo.protocols.tls.util.toUncompressedPoint
|
||||||
|
import io.netty.buffer.ByteBuf
|
||||||
|
import java.security.interfaces.ECPublicKey
|
||||||
|
|
||||||
|
data class ClientReadyPacket(
|
||||||
|
val clientPublicKey: ECPublicKey
|
||||||
|
)
|
||||||
|
|
||||||
|
class ClientReadyPacketSerializer : PacketSerializer<ClientReadyPacket> {
|
||||||
|
|
||||||
|
override fun serialize(packet: ClientReadyPacket, buffer: ByteBuf) {
|
||||||
|
val publicKeyBytes = packet.clientPublicKey.toUncompressedPoint()
|
||||||
|
|
||||||
|
buffer.writeShortLE(publicKeyBytes.size)
|
||||||
|
buffer.writeBytes(publicKeyBytes)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class ClientReadyPacketDeserializer : PacketDeserializer<ClientReadyPacket> {
|
||||||
|
|
||||||
|
override fun deserialize(buffer: ByteBuf): ClientReadyPacket {
|
||||||
|
val keyBytes = ByteArray(buffer.readShortLE().toInt())
|
||||||
|
buffer.readBytes(keyBytes)
|
||||||
|
|
||||||
|
val publicKey = keyBytes.toECPublicKey()
|
||||||
|
|
||||||
|
return ClientReadyPacket(publicKey)
|
||||||
|
}
|
||||||
|
}
|
||||||
+65
@@ -0,0 +1,65 @@
|
|||||||
|
package de.fiereu.openmmo.protocols.tls.packets
|
||||||
|
|
||||||
|
import de.fiereu.openmmo.protocols.PacketDeserializer
|
||||||
|
import de.fiereu.openmmo.protocols.PacketSerializer
|
||||||
|
import de.fiereu.openmmo.protocols.tls.util.sign
|
||||||
|
import de.fiereu.openmmo.protocols.tls.util.toECPublicKey
|
||||||
|
import de.fiereu.openmmo.protocols.tls.util.toUncompressedPoint
|
||||||
|
import io.netty.buffer.ByteBuf
|
||||||
|
import java.security.PublicKey
|
||||||
|
import java.security.interfaces.ECPrivateKey
|
||||||
|
import java.security.interfaces.ECPublicKey
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Represents a server hello packet in the TLS handshake.
|
||||||
|
*
|
||||||
|
* @property publicKey The public key generated for this connection.
|
||||||
|
* @property checksumSize The size of the checksum used for this connection.
|
||||||
|
*/
|
||||||
|
data class ServerHelloPacket(
|
||||||
|
val publicKey: ECPublicKey,
|
||||||
|
val checksumSize: Int
|
||||||
|
)
|
||||||
|
|
||||||
|
class ServerHelloPacketSerializer(
|
||||||
|
private val serverRootPrivateKey: ECPrivateKey
|
||||||
|
) : PacketSerializer<ServerHelloPacket> {
|
||||||
|
|
||||||
|
override fun serialize(packet: ServerHelloPacket, buffer: ByteBuf) {
|
||||||
|
val publicKeyBytes = packet.publicKey.toUncompressedPoint()
|
||||||
|
val signature = serverRootPrivateKey.sign(publicKeyBytes)
|
||||||
|
|
||||||
|
buffer.writeShortLE(publicKeyBytes.size)
|
||||||
|
buffer.writeBytes(publicKeyBytes)
|
||||||
|
|
||||||
|
buffer.writeShortLE(signature.size)
|
||||||
|
buffer.writeBytes(signature)
|
||||||
|
|
||||||
|
buffer.writeByte(packet.checksumSize)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class ServerHelloPacketDeserializer : PacketDeserializer<ServerHelloPacketDeserializer.ServerHelloPacket> {
|
||||||
|
|
||||||
|
data class ServerHelloPacket(
|
||||||
|
val clientPublicKey: PublicKey,
|
||||||
|
val signature: ByteArray,
|
||||||
|
val checksumSize: Int
|
||||||
|
)
|
||||||
|
|
||||||
|
override fun deserialize(buffer: ByteBuf): ServerHelloPacket {
|
||||||
|
val publicKeySize = buffer.readShortLE().toInt()
|
||||||
|
val publicKeyBytes = ByteArray(publicKeySize)
|
||||||
|
buffer.readBytes(publicKeyBytes)
|
||||||
|
|
||||||
|
val clientPublicKey = publicKeyBytes.toECPublicKey()
|
||||||
|
|
||||||
|
val signatureSize = buffer.readShortLE().toInt()
|
||||||
|
val signature = ByteArray(signatureSize)
|
||||||
|
buffer.readBytes(signature)
|
||||||
|
|
||||||
|
val checksumSize = buffer.readByte().toInt()
|
||||||
|
|
||||||
|
return ServerHelloPacket(clientPublicKey, signature, checksumSize)
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,96 @@
|
|||||||
|
package de.fiereu.openmmo.protocols.tls.util
|
||||||
|
|
||||||
|
import java.math.BigInteger
|
||||||
|
import java.security.AlgorithmParameters
|
||||||
|
import java.security.KeyFactory
|
||||||
|
import java.security.Security
|
||||||
|
import java.security.interfaces.ECPublicKey
|
||||||
|
import java.security.spec.ECGenParameterSpec
|
||||||
|
import java.security.spec.ECParameterSpec
|
||||||
|
import java.security.spec.ECPoint
|
||||||
|
import java.security.spec.ECPublicKeySpec
|
||||||
|
import java.security.Signature
|
||||||
|
import java.security.interfaces.ECPrivateKey
|
||||||
|
|
||||||
|
private const val uncompressedPointIndicator: Byte = 0x04
|
||||||
|
|
||||||
|
private val keyFactory: KeyFactory = KeyFactory.getInstance("EC")
|
||||||
|
|
||||||
|
private val ecParameterSpec: ECParameterSpec by lazy {
|
||||||
|
val algorithmParameters = AlgorithmParameters.getInstance("EC")
|
||||||
|
algorithmParameters.init(ECGenParameterSpec("secp256r1"))
|
||||||
|
algorithmParameters.getParameterSpec(ECParameterSpec::class.java)
|
||||||
|
}
|
||||||
|
|
||||||
|
fun ECPublicKey.toUncompressedPoint(): ByteArray {
|
||||||
|
val key = this
|
||||||
|
val point = key.w
|
||||||
|
val keyLength = (ecParameterSpec.order.bitLength() + Byte.SIZE_BITS - 1) / Byte.SIZE_BITS
|
||||||
|
|
||||||
|
var offset = 0
|
||||||
|
val data = ByteArray(1 + 2 * keyLength)
|
||||||
|
data[offset++] = uncompressedPointIndicator
|
||||||
|
|
||||||
|
val x = point.affineX.toByteArray()
|
||||||
|
val y = point.affineY.toByteArray()
|
||||||
|
|
||||||
|
when {
|
||||||
|
x.size <= keyLength -> {
|
||||||
|
System.arraycopy(x, 0, data, offset + keyLength - x.size, x.size)
|
||||||
|
}
|
||||||
|
x.size == keyLength + 1 && x[0] == 0.toByte() -> {
|
||||||
|
System.arraycopy(x, 1, data, offset, keyLength)
|
||||||
|
}
|
||||||
|
else -> {
|
||||||
|
throw IllegalStateException("x value is too large")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
offset += keyLength
|
||||||
|
when {
|
||||||
|
y.size <= keyLength -> {
|
||||||
|
System.arraycopy(y, 0, data, offset + keyLength - y.size, y.size)
|
||||||
|
}
|
||||||
|
y.size == keyLength + 1 && y[0] == 0.toByte() -> {
|
||||||
|
System.arraycopy(y, 1, data, offset, keyLength)
|
||||||
|
}
|
||||||
|
else -> {
|
||||||
|
throw IllegalStateException("y value is too large")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return data
|
||||||
|
}
|
||||||
|
|
||||||
|
fun ByteArray.toECPublicKey(): ECPublicKey {
|
||||||
|
if (this[0] != uncompressedPointIndicator) {
|
||||||
|
throw IllegalArgumentException("Invalid uncompressed point indicator")
|
||||||
|
}
|
||||||
|
|
||||||
|
val keyLength = (ecParameterSpec.order.bitLength() + Byte.SIZE_BITS - 1) / Byte.SIZE_BITS
|
||||||
|
if (this.size != 1 + 2 * keyLength) {
|
||||||
|
throw IllegalArgumentException("Invalid data length")
|
||||||
|
}
|
||||||
|
|
||||||
|
var offset = 1
|
||||||
|
val x = BigInteger(1, this.copyOfRange(offset, offset + keyLength))
|
||||||
|
offset += keyLength
|
||||||
|
val y = BigInteger(1, this.copyOfRange(offset, offset + keyLength))
|
||||||
|
val point = ECPoint(x, y)
|
||||||
|
|
||||||
|
return keyFactory.generatePublic(ECPublicKeySpec(point, ecParameterSpec)) as ECPublicKey
|
||||||
|
}
|
||||||
|
|
||||||
|
fun ECPrivateKey.sign(data: ByteArray): ByteArray {
|
||||||
|
val signature = Signature.getInstance("SHA256withECDSA")
|
||||||
|
signature.initSign(this)
|
||||||
|
signature.update(data)
|
||||||
|
return signature.sign()
|
||||||
|
}
|
||||||
|
|
||||||
|
fun ECPublicKey.verify(data: ByteArray, signatureBytes: ByteArray): Boolean {
|
||||||
|
val signature = Signature.getInstance("SHA256withECDSA")
|
||||||
|
signature.initVerify(this)
|
||||||
|
signature.update(data)
|
||||||
|
return signature.verify(signatureBytes)
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
# Protocol Module
|
||||||
|
|
||||||
|
The protocol module provides the core packet protocol framework for OpenMMO, including serialization and deserialization capabilities.
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
plugins {
|
||||||
|
id("buildsrc.convention.kotlin-jvm")
|
||||||
|
id("buildsrc.convention.spotless")
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
api(libs.kotlinx.serialization.core)
|
||||||
|
api(libs.netty)
|
||||||
|
|
||||||
|
implementation(libs.slf4j)
|
||||||
|
implementation(libs.kotlin.logging)
|
||||||
|
|
||||||
|
testImplementation(libs.bundles.kotest)
|
||||||
|
}
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
package de.fiereu.openmmo.protocols
|
||||||
|
|
||||||
|
import io.netty.buffer.ByteBuf
|
||||||
|
|
||||||
|
fun ByteBuf.readCharLE(): Char {
|
||||||
|
return ((readUnsignedByte().toInt() or (readUnsignedByte().toInt() shl 8)) and 0xFFFF).toChar()
|
||||||
|
}
|
||||||
|
|
||||||
|
fun ByteBuf.writeCharLE(value: Char) {
|
||||||
|
writeByte(value.code and 0xFF)
|
||||||
|
writeByte((value.code shr 8) and 0xFF)
|
||||||
|
}
|
||||||
|
|
||||||
|
fun ByteBuf.readUtf16LE(): String {
|
||||||
|
val builder = StringBuilder()
|
||||||
|
var c: Char
|
||||||
|
while ((readCharLE().also { c = it }).code != 0) {
|
||||||
|
builder.append(c)
|
||||||
|
}
|
||||||
|
return builder.toString()
|
||||||
|
}
|
||||||
|
|
||||||
|
fun ByteBuf.writeUtf16LE(value: String) {
|
||||||
|
for (c in value) {
|
||||||
|
writeCharLE(c)
|
||||||
|
}
|
||||||
|
writeCharLE(0.toChar()) // Null-terminator
|
||||||
|
}
|
||||||
@@ -0,0 +1,106 @@
|
|||||||
|
package de.fiereu.openmmo.protocols
|
||||||
|
|
||||||
|
import io.github.oshai.kotlinlogging.KotlinLogging
|
||||||
|
import io.netty.buffer.ByteBuf
|
||||||
|
import kotlin.reflect.KClass
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Value class wrapping a UByte to represent an opcode.
|
||||||
|
*/
|
||||||
|
@JvmInline
|
||||||
|
value class Opcode(val value: UByte) {
|
||||||
|
override fun toString(): String = "0x${value.toString(16).padStart(2, '0').uppercase()}"
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Packet direction enum representing the direction of packet flow.
|
||||||
|
* This is needed because depending on the current side (client or server),
|
||||||
|
* the same opcode can represent different packets.
|
||||||
|
* For example, opcode 0x01 might represent a "LoginRequest" packet on the client side,
|
||||||
|
* but a "LoginResponse" packet on the server side.
|
||||||
|
*/
|
||||||
|
enum class PacketDirection {
|
||||||
|
CLIENT_TO_SERVER,
|
||||||
|
SERVER_TO_CLIENT
|
||||||
|
}
|
||||||
|
|
||||||
|
interface PacketSerializer<T : Any> {
|
||||||
|
fun serializeObject(packet: Any, buffer: ByteBuf) {
|
||||||
|
@Suppress("UNCHECKED_CAST")
|
||||||
|
serialize(packet as T, buffer)
|
||||||
|
}
|
||||||
|
fun serialize(packet: T, buffer: ByteBuf)
|
||||||
|
}
|
||||||
|
|
||||||
|
interface PacketDeserializer<T : Any> {
|
||||||
|
fun deserialize(buffer: ByteBuf): T
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The base class for all protocols.
|
||||||
|
* A protocol is a collection of packets that can be sent and received.
|
||||||
|
*
|
||||||
|
* We cant combine Server and Client protocols because they have different dependencies.
|
||||||
|
* For example, the server protocol needs to know about the server's root private key,
|
||||||
|
* while the client protocol should not have any knowledge about the server's private key.
|
||||||
|
*/
|
||||||
|
abstract class Protocol {
|
||||||
|
private val log = KotlinLogging.logger {}
|
||||||
|
private val incomingPacketRegistry: MutableMap<Opcode, PacketDeserializer<*>> = mutableMapOf()
|
||||||
|
private val outgoingPacketRegistry: MutableMap<Opcode, PacketSerializer<*>> = mutableMapOf()
|
||||||
|
private val dataClassToOpcode: MutableMap<KClass<*>, Opcode> = mutableMapOf()
|
||||||
|
|
||||||
|
abstract val async: Boolean
|
||||||
|
|
||||||
|
fun getOpcode(dataClass: KClass<*>): Opcode? {
|
||||||
|
return dataClassToOpcode[dataClass]
|
||||||
|
}
|
||||||
|
|
||||||
|
fun <T : Any> registerIncoming(
|
||||||
|
opcode: Opcode,
|
||||||
|
deserializer: PacketDeserializer<T>
|
||||||
|
) {
|
||||||
|
log.debug { "Registering incoming packet: opcode=$opcode, deserializer=${deserializer::class.simpleName}" }
|
||||||
|
|
||||||
|
incomingPacketRegistry.put(opcode, deserializer)
|
||||||
|
}
|
||||||
|
|
||||||
|
fun <T : Any> registerOutgoing(
|
||||||
|
opcode: Opcode,
|
||||||
|
dataClass: KClass<T>,
|
||||||
|
serializer: PacketSerializer<T>,
|
||||||
|
) {
|
||||||
|
log.debug { "Registering outgoing packet: opcode=$opcode, serializer=${serializer::class.simpleName}" }
|
||||||
|
|
||||||
|
dataClassToOpcode[dataClass] = opcode
|
||||||
|
outgoingPacketRegistry.put(opcode, serializer)
|
||||||
|
}
|
||||||
|
|
||||||
|
fun getSerializer(opcode: Opcode): PacketSerializer<*>? {
|
||||||
|
return outgoingPacketRegistry[opcode]
|
||||||
|
}
|
||||||
|
|
||||||
|
fun getDeserializer(opcode: Opcode): PacketDeserializer<*>? {
|
||||||
|
return incomingPacketRegistry[opcode]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
fun Protocol.getDeserializer(opcode: UByte): PacketDeserializer<*>? {
|
||||||
|
return this.getDeserializer(Opcode(opcode))
|
||||||
|
}
|
||||||
|
|
||||||
|
fun <T : Any> Protocol.incomingPacket(
|
||||||
|
opcode: UByte,
|
||||||
|
deserializer: PacketDeserializer<T>
|
||||||
|
) {
|
||||||
|
this.registerIncoming(Opcode(opcode), deserializer)
|
||||||
|
}
|
||||||
|
|
||||||
|
fun <T : Any> Protocol.outgoingPacket(
|
||||||
|
opcode: UByte,
|
||||||
|
dataClass: KClass<T>,
|
||||||
|
serializer: PacketSerializer<T>
|
||||||
|
) {
|
||||||
|
this.registerOutgoing(Opcode(opcode), dataClass, serializer)
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
src/main/resources/game.*.pem
|
||||||
@@ -0,0 +1,56 @@
|
|||||||
|
# Server.Login Module
|
||||||
|
|
||||||
|
The server.login module implements the login server for OpenMMO with authentication and database integration.
|
||||||
|
|
||||||
|
## Contents
|
||||||
|
|
||||||
|
### Main Application
|
||||||
|
- **LoginServer**: Main application entry point that configures and starts the login server on port 2106
|
||||||
|
- **LoginProtocolHandler**: Protocol handler for processing login-specific packets
|
||||||
|
|
||||||
|
### Configuration
|
||||||
|
- Server runs on port 2106
|
||||||
|
- Uses ECDSA game keys for packet signing/verification
|
||||||
|
- Configured with TLS checksum size of 16 bytes (partial HMAC-SHA256)
|
||||||
|
|
||||||
|
### Database Integration
|
||||||
|
- **PostgreSQL**: Primary database for user authentication
|
||||||
|
- **Flyway**: Database migration management
|
||||||
|
- **jOOQ**: Type-safe database queries with code generation
|
||||||
|
|
||||||
|
### Key Features
|
||||||
|
- User authentication & management
|
||||||
|
- Integration with protocol.login for packet handling
|
||||||
|
- TLS-secured communication
|
||||||
|
- Docker support with dedicated Dockerfile
|
||||||
|
|
||||||
|
### Configuration Files
|
||||||
|
- **application.conf**: HOCON configuration for server settings
|
||||||
|
- **logback.xml**: Logging configuration
|
||||||
|
- **db.migrations**: SQL scripts for schema management
|
||||||
|
|
||||||
|
### Docker Support
|
||||||
|
The module includes a Dockerfile for containerized deployment:
|
||||||
|
- Multi-stage build using Zulu OpenJDK 24
|
||||||
|
- Exposes port 2106
|
||||||
|
- Includes all necessary dependencies and keys
|
||||||
|
|
||||||
|
## Dependencies
|
||||||
|
- Server module for core framework
|
||||||
|
- Protocol.login module for authentication packets
|
||||||
|
- PostgreSQL driver for database connectivity
|
||||||
|
- jOOQ for database operations
|
||||||
|
- Flyway for schema management
|
||||||
|
- Logback for logging
|
||||||
|
- Kotlinx.coroutines for async processing
|
||||||
|
|
||||||
|
## Environment Variables
|
||||||
|
The application requires database configuration through environment variables:
|
||||||
|
- Database connection settings (host, port, name, user, password)
|
||||||
|
- Configured via gradle.properties or environment
|
||||||
|
|
||||||
|
## Development
|
||||||
|
- Run with: `./gradlew :server.login:run`
|
||||||
|
- Database setup: `./gradlew cleanMigrateAndGenerate`
|
||||||
|
- Code generation: `./gradlew jooqCodegen`
|
||||||
|
- Docker build: `docker build -t openmmo-login server.login/`
|
||||||
@@ -0,0 +1,128 @@
|
|||||||
|
import org.flywaydb.gradle.task.AbstractFlywayTask
|
||||||
|
|
||||||
|
buildscript {
|
||||||
|
dependencies {
|
||||||
|
classpath(libs.flyway.postgresql)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
plugins {
|
||||||
|
application
|
||||||
|
distribution
|
||||||
|
id("buildsrc.convention.kotlin-jvm")
|
||||||
|
id("buildsrc.convention.spotless")
|
||||||
|
id("buildsrc.common.keys")
|
||||||
|
alias(libs.plugins.kotlin.serialization)
|
||||||
|
alias(libs.plugins.jooq)
|
||||||
|
alias(libs.plugins.flyway)
|
||||||
|
}
|
||||||
|
|
||||||
|
group = "de.fiereu.openmmo"
|
||||||
|
version = "0.1.0"
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
implementation(project(":server"))
|
||||||
|
implementation(project(":protocol.login"))
|
||||||
|
implementation(libs.logback)
|
||||||
|
implementation(libs.kotlinx.coroutines)
|
||||||
|
|
||||||
|
runtimeOnly(libs.postgresql)
|
||||||
|
|
||||||
|
implementation(libs.bundles.jooq)
|
||||||
|
jooqCodegen(libs.postgresql)
|
||||||
|
|
||||||
|
implementation(libs.flyway.core)
|
||||||
|
implementation(libs.flyway.postgresql)
|
||||||
|
|
||||||
|
testImplementation(libs.bundles.kotest)
|
||||||
|
testImplementation(libs.kotlinx.coroutines.test)
|
||||||
|
testImplementation(libs.mockk)
|
||||||
|
}
|
||||||
|
|
||||||
|
application {
|
||||||
|
mainClass.set("de.fiereu.openmmo.server.login.LoginServerKt")
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.classes.get().apply {
|
||||||
|
dependsOn("copyKeysGame")
|
||||||
|
tasks.processResources.get().mustRunAfter("copyKeysGame")
|
||||||
|
}
|
||||||
|
|
||||||
|
fun env(key: String): Any {
|
||||||
|
val value = property(key) ?:
|
||||||
|
System.getenv(key) ?:
|
||||||
|
throw IllegalArgumentException("Environment variable or system property '$key' is not set.")
|
||||||
|
fun interpolate(value: String): Any {
|
||||||
|
val PATTERN_WORD = Regex("\\$([a-zA-Z0-9_]+)")
|
||||||
|
val PATTERN_MULTI = Regex("\\$\\{([a-zA-Z0-9_]+)\\}")
|
||||||
|
return (PATTERN_WORD.findAll(value) + PATTERN_MULTI.findAll(value))
|
||||||
|
.distinct()
|
||||||
|
.fold(value) { acc, match ->
|
||||||
|
val envName = match.groupValues[1]
|
||||||
|
val envValue = System.getProperty(envName) ?: System.getProperty(envName)
|
||||||
|
if (envValue == null) {
|
||||||
|
throw IllegalArgumentException("Environment variable or system property '$envName' is not set.")
|
||||||
|
}
|
||||||
|
acc.replace(match.value, envValue)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return if (value is String && (value.contains('$') || value.contains('{'))) {
|
||||||
|
interpolate(value)
|
||||||
|
} else value
|
||||||
|
}
|
||||||
|
|
||||||
|
val dbPort = env("openmmo.db.login.port") as String
|
||||||
|
val dbName = env("openmmo.db.login.name") as String
|
||||||
|
val dbUser = env("openmmo.db.login.user") as String
|
||||||
|
val dbPassword = env("openmmo.db.login.password") as String
|
||||||
|
|
||||||
|
jooq {
|
||||||
|
configuration {
|
||||||
|
jdbc {
|
||||||
|
driver = "org.postgresql.Driver"
|
||||||
|
url = "jdbc:postgresql://localhost:$dbPort/$dbName"
|
||||||
|
user = dbUser
|
||||||
|
password = dbPassword
|
||||||
|
}
|
||||||
|
generator {
|
||||||
|
database {
|
||||||
|
name = "org.jooq.meta.postgres.PostgresDatabase"
|
||||||
|
includes = ".*"
|
||||||
|
excludes = """
|
||||||
|
flyway_schema_history |
|
||||||
|
pgp_armor_headers
|
||||||
|
"""
|
||||||
|
inputSchema = "public"
|
||||||
|
}
|
||||||
|
|
||||||
|
generate {
|
||||||
|
name = "org.jooq.codegen.KotlinGenerator"
|
||||||
|
}
|
||||||
|
target {
|
||||||
|
packageName = "de.fiereu.openmmo.server.login.jooq"
|
||||||
|
directory = "src/main/jooq"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
flyway {
|
||||||
|
driver = "org.postgresql.Driver"
|
||||||
|
url = "jdbc:postgresql://localhost:$dbPort/$dbName"
|
||||||
|
user = dbUser
|
||||||
|
password = dbPassword
|
||||||
|
schemas = arrayOf("public")
|
||||||
|
locations = arrayOf("filesystem:src/main/resources/db/migration")
|
||||||
|
cleanDisabled = false
|
||||||
|
}
|
||||||
|
|
||||||
|
// Fuck this shit uhh we are not gonna update our gradle plugin bc all our enterprise customers are stuck on Java 1.6 and gradle 5 anyway
|
||||||
|
tasks.withType<AbstractFlywayTask>().configureEach {
|
||||||
|
notCompatibleWithConfigurationCache("https://github.com/flyway/flyway/issues/3550")
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.register("cleanMigrateAndGenerate") {
|
||||||
|
group = "openmmo"
|
||||||
|
description = "Cleans the database, migrates it and generates the jOOQ classes."
|
||||||
|
dependsOn("flywayClean", "flywayMigrate", "jooqCodegen")
|
||||||
|
}
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package de.fiereu.openmmo.server.login.jooq
|
||||||
|
|
||||||
|
|
||||||
|
import kotlin.collections.List
|
||||||
|
|
||||||
|
import org.jooq.Constants
|
||||||
|
import org.jooq.Schema
|
||||||
|
import org.jooq.impl.CatalogImpl
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Suppress("warnings")
|
||||||
|
open class DefaultCatalog : CatalogImpl("") {
|
||||||
|
companion object {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The reference instance of <code>DEFAULT_CATALOG</code>
|
||||||
|
*/
|
||||||
|
val DEFAULT_CATALOG: DefaultCatalog = DefaultCatalog()
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* standard public schema
|
||||||
|
*/
|
||||||
|
val PUBLIC: Public get(): Public = Public.PUBLIC
|
||||||
|
|
||||||
|
override fun getSchemas(): List<Schema> = listOf(
|
||||||
|
Public.PUBLIC
|
||||||
|
)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A reference to the 3.20 minor release of the code generator. If this
|
||||||
|
* doesn't compile, it's because the runtime library uses an older minor
|
||||||
|
* release, namely: 3.20. You can turn off the generation of this reference
|
||||||
|
* by specifying /configuration/generator/generate/jooqVersionReference
|
||||||
|
*/
|
||||||
|
private val REQUIRE_RUNTIME_JOOQ_VERSION = Constants.VERSION_3_20
|
||||||
|
}
|
||||||
@@ -0,0 +1,40 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package de.fiereu.openmmo.server.login.jooq
|
||||||
|
|
||||||
|
|
||||||
|
import de.fiereu.openmmo.server.login.jooq.tables.User
|
||||||
|
|
||||||
|
import kotlin.collections.List
|
||||||
|
|
||||||
|
import org.jooq.Catalog
|
||||||
|
import org.jooq.Table
|
||||||
|
import org.jooq.impl.DSL
|
||||||
|
import org.jooq.impl.SchemaImpl
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* standard public schema
|
||||||
|
*/
|
||||||
|
@Suppress("warnings")
|
||||||
|
open class Public : SchemaImpl(DSL.name("public"), DefaultCatalog.DEFAULT_CATALOG, DSL.comment("standard public schema")) {
|
||||||
|
companion object {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The reference instance of <code>public</code>
|
||||||
|
*/
|
||||||
|
val PUBLIC: Public = Public()
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The table <code>public.user</code>.
|
||||||
|
*/
|
||||||
|
val USER: User get() = User.USER
|
||||||
|
|
||||||
|
override fun getCatalog(): Catalog = DefaultCatalog.DEFAULT_CATALOG
|
||||||
|
|
||||||
|
override fun getTables(): List<Table<*>> = listOf(
|
||||||
|
User.USER
|
||||||
|
)
|
||||||
|
}
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
@file:Suppress("warnings")
|
||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package de.fiereu.openmmo.server.login.jooq.keys
|
||||||
|
|
||||||
|
|
||||||
|
import de.fiereu.openmmo.server.login.jooq.tables.User
|
||||||
|
import de.fiereu.openmmo.server.login.jooq.tables.records.UserRecord
|
||||||
|
|
||||||
|
import org.jooq.UniqueKey
|
||||||
|
import org.jooq.impl.DSL
|
||||||
|
import org.jooq.impl.Internal
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// -------------------------------------------------------------------------
|
||||||
|
// UNIQUE and PRIMARY KEY definitions
|
||||||
|
// -------------------------------------------------------------------------
|
||||||
|
|
||||||
|
val USER_PKEY: UniqueKey<UserRecord> = Internal.createUniqueKey(User.USER, DSL.name("user_pkey"), arrayOf(User.USER.ID), true)
|
||||||
|
val USER_USERNAME_KEY: UniqueKey<UserRecord> = Internal.createUniqueKey(User.USER, DSL.name("user_username_key"), arrayOf(User.USER.USERNAME), true)
|
||||||
@@ -0,0 +1,53 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package de.fiereu.openmmo.server.login.jooq.routines
|
||||||
|
|
||||||
|
|
||||||
|
import de.fiereu.openmmo.server.login.jooq.Public
|
||||||
|
|
||||||
|
import org.jooq.Field
|
||||||
|
import org.jooq.Parameter
|
||||||
|
import org.jooq.impl.AbstractRoutine
|
||||||
|
import org.jooq.impl.DSL
|
||||||
|
import org.jooq.impl.Internal
|
||||||
|
import org.jooq.impl.SQLDataType
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Suppress("warnings")
|
||||||
|
open class Armor1 : AbstractRoutine<String>("armor", Public.PUBLIC, DSL.comment(""), SQLDataType.CLOB) {
|
||||||
|
companion object {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.armor.RETURN_VALUE</code>.
|
||||||
|
*/
|
||||||
|
val RETURN_VALUE: Parameter<String?> = Internal.createParameter("RETURN_VALUE", SQLDataType.CLOB, false, false)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.armor._1</code>.
|
||||||
|
*/
|
||||||
|
val _1: Parameter<ByteArray?> = Internal.createParameter("_1", SQLDataType.BLOB, false, true)
|
||||||
|
}
|
||||||
|
|
||||||
|
init {
|
||||||
|
returnParameter = Armor1.RETURN_VALUE
|
||||||
|
addInParameter(Armor1._1)
|
||||||
|
setOverloaded(true)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_1</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__1(value: ByteArray?): Unit = setValue(Armor1._1, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_1</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__1(field: Field<ByteArray?>): Unit {
|
||||||
|
setField(Armor1._1, field)
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,91 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package de.fiereu.openmmo.server.login.jooq.routines
|
||||||
|
|
||||||
|
|
||||||
|
import de.fiereu.openmmo.server.login.jooq.Public
|
||||||
|
|
||||||
|
import org.jooq.Field
|
||||||
|
import org.jooq.Parameter
|
||||||
|
import org.jooq.impl.AbstractRoutine
|
||||||
|
import org.jooq.impl.DSL
|
||||||
|
import org.jooq.impl.Internal
|
||||||
|
import org.jooq.impl.SQLDataType
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Suppress("warnings")
|
||||||
|
open class Armor2 : AbstractRoutine<String>("armor", Public.PUBLIC, DSL.comment(""), SQLDataType.CLOB) {
|
||||||
|
companion object {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.armor.RETURN_VALUE</code>.
|
||||||
|
*/
|
||||||
|
val RETURN_VALUE: Parameter<String?> = Internal.createParameter("RETURN_VALUE", SQLDataType.CLOB, false, false)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.armor._1</code>.
|
||||||
|
*/
|
||||||
|
val _1: Parameter<ByteArray?> = Internal.createParameter("_1", SQLDataType.BLOB, false, true)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.armor._2</code>.
|
||||||
|
*/
|
||||||
|
val _2: Parameter<Array<String?>?> = Internal.createParameter("_2", SQLDataType.CLOB.array(), false, true)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.armor._3</code>.
|
||||||
|
*/
|
||||||
|
val _3: Parameter<Array<String?>?> = Internal.createParameter("_3", SQLDataType.CLOB.array(), false, true)
|
||||||
|
}
|
||||||
|
|
||||||
|
init {
|
||||||
|
returnParameter = Armor2.RETURN_VALUE
|
||||||
|
addInParameter(Armor2._1)
|
||||||
|
addInParameter(Armor2._2)
|
||||||
|
addInParameter(Armor2._3)
|
||||||
|
setOverloaded(true)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_1</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__1(value: ByteArray?): Unit = setValue(Armor2._1, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_1</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__1(field: Field<ByteArray?>): Unit {
|
||||||
|
setField(Armor2._1, field)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_2</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__2(value: Array<String?>?): Unit = setValue(Armor2._2, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_2</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__2(field: Field<Array<String?>?>): Unit {
|
||||||
|
setField(Armor2._2, field)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_3</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__3(value: Array<String?>?): Unit = setValue(Armor2._3, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_3</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__3(field: Field<Array<String?>?>): Unit {
|
||||||
|
setField(Armor2._3, field)
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,71 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package de.fiereu.openmmo.server.login.jooq.routines
|
||||||
|
|
||||||
|
|
||||||
|
import de.fiereu.openmmo.server.login.jooq.Public
|
||||||
|
|
||||||
|
import org.jooq.Field
|
||||||
|
import org.jooq.Parameter
|
||||||
|
import org.jooq.impl.AbstractRoutine
|
||||||
|
import org.jooq.impl.DSL
|
||||||
|
import org.jooq.impl.Internal
|
||||||
|
import org.jooq.impl.SQLDataType
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Suppress("warnings")
|
||||||
|
open class Crypt : AbstractRoutine<String>("crypt", Public.PUBLIC, DSL.comment(""), SQLDataType.CLOB) {
|
||||||
|
companion object {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.crypt.RETURN_VALUE</code>.
|
||||||
|
*/
|
||||||
|
val RETURN_VALUE: Parameter<String?> = Internal.createParameter("RETURN_VALUE", SQLDataType.CLOB, false, false)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.crypt._1</code>.
|
||||||
|
*/
|
||||||
|
val _1: Parameter<String?> = Internal.createParameter("_1", SQLDataType.CLOB, false, true)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.crypt._2</code>.
|
||||||
|
*/
|
||||||
|
val _2: Parameter<String?> = Internal.createParameter("_2", SQLDataType.CLOB, false, true)
|
||||||
|
}
|
||||||
|
|
||||||
|
init {
|
||||||
|
returnParameter = Crypt.RETURN_VALUE
|
||||||
|
addInParameter(Crypt._1)
|
||||||
|
addInParameter(Crypt._2)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_1</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__1(value: String?): Unit = setValue(Crypt._1, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_1</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__1(field: Field<String?>): Unit {
|
||||||
|
setField(Crypt._1, field)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_2</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__2(value: String?): Unit = setValue(Crypt._2, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_2</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__2(field: Field<String?>): Unit {
|
||||||
|
setField(Crypt._2, field)
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,52 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package de.fiereu.openmmo.server.login.jooq.routines
|
||||||
|
|
||||||
|
|
||||||
|
import de.fiereu.openmmo.server.login.jooq.Public
|
||||||
|
|
||||||
|
import org.jooq.Field
|
||||||
|
import org.jooq.Parameter
|
||||||
|
import org.jooq.impl.AbstractRoutine
|
||||||
|
import org.jooq.impl.DSL
|
||||||
|
import org.jooq.impl.Internal
|
||||||
|
import org.jooq.impl.SQLDataType
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Suppress("warnings")
|
||||||
|
open class Dearmor : AbstractRoutine<ByteArray>("dearmor", Public.PUBLIC, DSL.comment(""), SQLDataType.BLOB) {
|
||||||
|
companion object {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.dearmor.RETURN_VALUE</code>.
|
||||||
|
*/
|
||||||
|
val RETURN_VALUE: Parameter<ByteArray?> = Internal.createParameter("RETURN_VALUE", SQLDataType.BLOB, false, false)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.dearmor._1</code>.
|
||||||
|
*/
|
||||||
|
val _1: Parameter<String?> = Internal.createParameter("_1", SQLDataType.CLOB, false, true)
|
||||||
|
}
|
||||||
|
|
||||||
|
init {
|
||||||
|
returnParameter = Dearmor.RETURN_VALUE
|
||||||
|
addInParameter(Dearmor._1)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_1</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__1(value: String?): Unit = setValue(Dearmor._1, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_1</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__1(field: Field<String?>): Unit {
|
||||||
|
setField(Dearmor._1, field)
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,90 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package de.fiereu.openmmo.server.login.jooq.routines
|
||||||
|
|
||||||
|
|
||||||
|
import de.fiereu.openmmo.server.login.jooq.Public
|
||||||
|
|
||||||
|
import org.jooq.Field
|
||||||
|
import org.jooq.Parameter
|
||||||
|
import org.jooq.impl.AbstractRoutine
|
||||||
|
import org.jooq.impl.DSL
|
||||||
|
import org.jooq.impl.Internal
|
||||||
|
import org.jooq.impl.SQLDataType
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Suppress("warnings")
|
||||||
|
open class Decrypt : AbstractRoutine<ByteArray>("decrypt", Public.PUBLIC, DSL.comment(""), SQLDataType.BLOB) {
|
||||||
|
companion object {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.decrypt.RETURN_VALUE</code>.
|
||||||
|
*/
|
||||||
|
val RETURN_VALUE: Parameter<ByteArray?> = Internal.createParameter("RETURN_VALUE", SQLDataType.BLOB, false, false)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.decrypt._1</code>.
|
||||||
|
*/
|
||||||
|
val _1: Parameter<ByteArray?> = Internal.createParameter("_1", SQLDataType.BLOB, false, true)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.decrypt._2</code>.
|
||||||
|
*/
|
||||||
|
val _2: Parameter<ByteArray?> = Internal.createParameter("_2", SQLDataType.BLOB, false, true)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.decrypt._3</code>.
|
||||||
|
*/
|
||||||
|
val _3: Parameter<String?> = Internal.createParameter("_3", SQLDataType.CLOB, false, true)
|
||||||
|
}
|
||||||
|
|
||||||
|
init {
|
||||||
|
returnParameter = Decrypt.RETURN_VALUE
|
||||||
|
addInParameter(Decrypt._1)
|
||||||
|
addInParameter(Decrypt._2)
|
||||||
|
addInParameter(Decrypt._3)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_1</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__1(value: ByteArray?): Unit = setValue(Decrypt._1, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_1</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__1(field: Field<ByteArray?>): Unit {
|
||||||
|
setField(Decrypt._1, field)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_2</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__2(value: ByteArray?): Unit = setValue(Decrypt._2, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_2</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__2(field: Field<ByteArray?>): Unit {
|
||||||
|
setField(Decrypt._2, field)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_3</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__3(value: String?): Unit = setValue(Decrypt._3, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_3</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__3(field: Field<String?>): Unit {
|
||||||
|
setField(Decrypt._3, field)
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,109 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package de.fiereu.openmmo.server.login.jooq.routines
|
||||||
|
|
||||||
|
|
||||||
|
import de.fiereu.openmmo.server.login.jooq.Public
|
||||||
|
|
||||||
|
import org.jooq.Field
|
||||||
|
import org.jooq.Parameter
|
||||||
|
import org.jooq.impl.AbstractRoutine
|
||||||
|
import org.jooq.impl.DSL
|
||||||
|
import org.jooq.impl.Internal
|
||||||
|
import org.jooq.impl.SQLDataType
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Suppress("warnings")
|
||||||
|
open class DecryptIv : AbstractRoutine<ByteArray>("decrypt_iv", Public.PUBLIC, DSL.comment(""), SQLDataType.BLOB) {
|
||||||
|
companion object {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.decrypt_iv.RETURN_VALUE</code>.
|
||||||
|
*/
|
||||||
|
val RETURN_VALUE: Parameter<ByteArray?> = Internal.createParameter("RETURN_VALUE", SQLDataType.BLOB, false, false)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.decrypt_iv._1</code>.
|
||||||
|
*/
|
||||||
|
val _1: Parameter<ByteArray?> = Internal.createParameter("_1", SQLDataType.BLOB, false, true)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.decrypt_iv._2</code>.
|
||||||
|
*/
|
||||||
|
val _2: Parameter<ByteArray?> = Internal.createParameter("_2", SQLDataType.BLOB, false, true)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.decrypt_iv._3</code>.
|
||||||
|
*/
|
||||||
|
val _3: Parameter<ByteArray?> = Internal.createParameter("_3", SQLDataType.BLOB, false, true)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.decrypt_iv._4</code>.
|
||||||
|
*/
|
||||||
|
val _4: Parameter<String?> = Internal.createParameter("_4", SQLDataType.CLOB, false, true)
|
||||||
|
}
|
||||||
|
|
||||||
|
init {
|
||||||
|
returnParameter = DecryptIv.RETURN_VALUE
|
||||||
|
addInParameter(DecryptIv._1)
|
||||||
|
addInParameter(DecryptIv._2)
|
||||||
|
addInParameter(DecryptIv._3)
|
||||||
|
addInParameter(DecryptIv._4)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_1</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__1(value: ByteArray?): Unit = setValue(DecryptIv._1, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_1</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__1(field: Field<ByteArray?>): Unit {
|
||||||
|
setField(DecryptIv._1, field)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_2</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__2(value: ByteArray?): Unit = setValue(DecryptIv._2, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_2</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__2(field: Field<ByteArray?>): Unit {
|
||||||
|
setField(DecryptIv._2, field)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_3</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__3(value: ByteArray?): Unit = setValue(DecryptIv._3, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_3</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__3(field: Field<ByteArray?>): Unit {
|
||||||
|
setField(DecryptIv._3, field)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_4</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__4(value: String?): Unit = setValue(DecryptIv._4, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_4</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__4(field: Field<String?>): Unit {
|
||||||
|
setField(DecryptIv._4, field)
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,72 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package de.fiereu.openmmo.server.login.jooq.routines
|
||||||
|
|
||||||
|
|
||||||
|
import de.fiereu.openmmo.server.login.jooq.Public
|
||||||
|
|
||||||
|
import org.jooq.Field
|
||||||
|
import org.jooq.Parameter
|
||||||
|
import org.jooq.impl.AbstractRoutine
|
||||||
|
import org.jooq.impl.DSL
|
||||||
|
import org.jooq.impl.Internal
|
||||||
|
import org.jooq.impl.SQLDataType
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Suppress("warnings")
|
||||||
|
open class Digest1 : AbstractRoutine<ByteArray>("digest", Public.PUBLIC, DSL.comment(""), SQLDataType.BLOB) {
|
||||||
|
companion object {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.digest.RETURN_VALUE</code>.
|
||||||
|
*/
|
||||||
|
val RETURN_VALUE: Parameter<ByteArray?> = Internal.createParameter("RETURN_VALUE", SQLDataType.BLOB, false, false)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.digest._1</code>.
|
||||||
|
*/
|
||||||
|
val _1: Parameter<String?> = Internal.createParameter("_1", SQLDataType.CLOB, false, true)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.digest._2</code>.
|
||||||
|
*/
|
||||||
|
val _2: Parameter<String?> = Internal.createParameter("_2", SQLDataType.CLOB, false, true)
|
||||||
|
}
|
||||||
|
|
||||||
|
init {
|
||||||
|
returnParameter = Digest1.RETURN_VALUE
|
||||||
|
addInParameter(Digest1._1)
|
||||||
|
addInParameter(Digest1._2)
|
||||||
|
setOverloaded(true)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_1</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__1(value: String?): Unit = setValue(Digest1._1, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_1</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__1(field: Field<String?>): Unit {
|
||||||
|
setField(Digest1._1, field)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_2</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__2(value: String?): Unit = setValue(Digest1._2, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_2</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__2(field: Field<String?>): Unit {
|
||||||
|
setField(Digest1._2, field)
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,72 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package de.fiereu.openmmo.server.login.jooq.routines
|
||||||
|
|
||||||
|
|
||||||
|
import de.fiereu.openmmo.server.login.jooq.Public
|
||||||
|
|
||||||
|
import org.jooq.Field
|
||||||
|
import org.jooq.Parameter
|
||||||
|
import org.jooq.impl.AbstractRoutine
|
||||||
|
import org.jooq.impl.DSL
|
||||||
|
import org.jooq.impl.Internal
|
||||||
|
import org.jooq.impl.SQLDataType
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Suppress("warnings")
|
||||||
|
open class Digest2 : AbstractRoutine<ByteArray>("digest", Public.PUBLIC, DSL.comment(""), SQLDataType.BLOB) {
|
||||||
|
companion object {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.digest.RETURN_VALUE</code>.
|
||||||
|
*/
|
||||||
|
val RETURN_VALUE: Parameter<ByteArray?> = Internal.createParameter("RETURN_VALUE", SQLDataType.BLOB, false, false)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.digest._1</code>.
|
||||||
|
*/
|
||||||
|
val _1: Parameter<ByteArray?> = Internal.createParameter("_1", SQLDataType.BLOB, false, true)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.digest._2</code>.
|
||||||
|
*/
|
||||||
|
val _2: Parameter<String?> = Internal.createParameter("_2", SQLDataType.CLOB, false, true)
|
||||||
|
}
|
||||||
|
|
||||||
|
init {
|
||||||
|
returnParameter = Digest2.RETURN_VALUE
|
||||||
|
addInParameter(Digest2._1)
|
||||||
|
addInParameter(Digest2._2)
|
||||||
|
setOverloaded(true)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_1</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__1(value: ByteArray?): Unit = setValue(Digest2._1, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_1</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__1(field: Field<ByteArray?>): Unit {
|
||||||
|
setField(Digest2._1, field)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_2</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__2(value: String?): Unit = setValue(Digest2._2, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_2</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__2(field: Field<String?>): Unit {
|
||||||
|
setField(Digest2._2, field)
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,90 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package de.fiereu.openmmo.server.login.jooq.routines
|
||||||
|
|
||||||
|
|
||||||
|
import de.fiereu.openmmo.server.login.jooq.Public
|
||||||
|
|
||||||
|
import org.jooq.Field
|
||||||
|
import org.jooq.Parameter
|
||||||
|
import org.jooq.impl.AbstractRoutine
|
||||||
|
import org.jooq.impl.DSL
|
||||||
|
import org.jooq.impl.Internal
|
||||||
|
import org.jooq.impl.SQLDataType
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Suppress("warnings")
|
||||||
|
open class Encrypt : AbstractRoutine<ByteArray>("encrypt", Public.PUBLIC, DSL.comment(""), SQLDataType.BLOB) {
|
||||||
|
companion object {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.encrypt.RETURN_VALUE</code>.
|
||||||
|
*/
|
||||||
|
val RETURN_VALUE: Parameter<ByteArray?> = Internal.createParameter("RETURN_VALUE", SQLDataType.BLOB, false, false)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.encrypt._1</code>.
|
||||||
|
*/
|
||||||
|
val _1: Parameter<ByteArray?> = Internal.createParameter("_1", SQLDataType.BLOB, false, true)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.encrypt._2</code>.
|
||||||
|
*/
|
||||||
|
val _2: Parameter<ByteArray?> = Internal.createParameter("_2", SQLDataType.BLOB, false, true)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.encrypt._3</code>.
|
||||||
|
*/
|
||||||
|
val _3: Parameter<String?> = Internal.createParameter("_3", SQLDataType.CLOB, false, true)
|
||||||
|
}
|
||||||
|
|
||||||
|
init {
|
||||||
|
returnParameter = Encrypt.RETURN_VALUE
|
||||||
|
addInParameter(Encrypt._1)
|
||||||
|
addInParameter(Encrypt._2)
|
||||||
|
addInParameter(Encrypt._3)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_1</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__1(value: ByteArray?): Unit = setValue(Encrypt._1, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_1</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__1(field: Field<ByteArray?>): Unit {
|
||||||
|
setField(Encrypt._1, field)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_2</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__2(value: ByteArray?): Unit = setValue(Encrypt._2, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_2</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__2(field: Field<ByteArray?>): Unit {
|
||||||
|
setField(Encrypt._2, field)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_3</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__3(value: String?): Unit = setValue(Encrypt._3, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_3</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__3(field: Field<String?>): Unit {
|
||||||
|
setField(Encrypt._3, field)
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,109 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package de.fiereu.openmmo.server.login.jooq.routines
|
||||||
|
|
||||||
|
|
||||||
|
import de.fiereu.openmmo.server.login.jooq.Public
|
||||||
|
|
||||||
|
import org.jooq.Field
|
||||||
|
import org.jooq.Parameter
|
||||||
|
import org.jooq.impl.AbstractRoutine
|
||||||
|
import org.jooq.impl.DSL
|
||||||
|
import org.jooq.impl.Internal
|
||||||
|
import org.jooq.impl.SQLDataType
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Suppress("warnings")
|
||||||
|
open class EncryptIv : AbstractRoutine<ByteArray>("encrypt_iv", Public.PUBLIC, DSL.comment(""), SQLDataType.BLOB) {
|
||||||
|
companion object {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.encrypt_iv.RETURN_VALUE</code>.
|
||||||
|
*/
|
||||||
|
val RETURN_VALUE: Parameter<ByteArray?> = Internal.createParameter("RETURN_VALUE", SQLDataType.BLOB, false, false)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.encrypt_iv._1</code>.
|
||||||
|
*/
|
||||||
|
val _1: Parameter<ByteArray?> = Internal.createParameter("_1", SQLDataType.BLOB, false, true)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.encrypt_iv._2</code>.
|
||||||
|
*/
|
||||||
|
val _2: Parameter<ByteArray?> = Internal.createParameter("_2", SQLDataType.BLOB, false, true)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.encrypt_iv._3</code>.
|
||||||
|
*/
|
||||||
|
val _3: Parameter<ByteArray?> = Internal.createParameter("_3", SQLDataType.BLOB, false, true)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.encrypt_iv._4</code>.
|
||||||
|
*/
|
||||||
|
val _4: Parameter<String?> = Internal.createParameter("_4", SQLDataType.CLOB, false, true)
|
||||||
|
}
|
||||||
|
|
||||||
|
init {
|
||||||
|
returnParameter = EncryptIv.RETURN_VALUE
|
||||||
|
addInParameter(EncryptIv._1)
|
||||||
|
addInParameter(EncryptIv._2)
|
||||||
|
addInParameter(EncryptIv._3)
|
||||||
|
addInParameter(EncryptIv._4)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_1</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__1(value: ByteArray?): Unit = setValue(EncryptIv._1, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_1</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__1(field: Field<ByteArray?>): Unit {
|
||||||
|
setField(EncryptIv._1, field)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_2</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__2(value: ByteArray?): Unit = setValue(EncryptIv._2, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_2</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__2(field: Field<ByteArray?>): Unit {
|
||||||
|
setField(EncryptIv._2, field)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_3</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__3(value: ByteArray?): Unit = setValue(EncryptIv._3, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_3</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__3(field: Field<ByteArray?>): Unit {
|
||||||
|
setField(EncryptIv._3, field)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_4</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__4(value: String?): Unit = setValue(EncryptIv._4, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_4</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__4(field: Field<String?>): Unit {
|
||||||
|
setField(EncryptIv._4, field)
|
||||||
|
}
|
||||||
|
}
|
||||||
+52
@@ -0,0 +1,52 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package de.fiereu.openmmo.server.login.jooq.routines
|
||||||
|
|
||||||
|
|
||||||
|
import de.fiereu.openmmo.server.login.jooq.Public
|
||||||
|
|
||||||
|
import org.jooq.Field
|
||||||
|
import org.jooq.Parameter
|
||||||
|
import org.jooq.impl.AbstractRoutine
|
||||||
|
import org.jooq.impl.DSL
|
||||||
|
import org.jooq.impl.Internal
|
||||||
|
import org.jooq.impl.SQLDataType
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Suppress("warnings")
|
||||||
|
open class GenRandomBytes : AbstractRoutine<ByteArray>("gen_random_bytes", Public.PUBLIC, DSL.comment(""), SQLDataType.BLOB) {
|
||||||
|
companion object {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.gen_random_bytes.RETURN_VALUE</code>.
|
||||||
|
*/
|
||||||
|
val RETURN_VALUE: Parameter<ByteArray?> = Internal.createParameter("RETURN_VALUE", SQLDataType.BLOB, false, false)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.gen_random_bytes._1</code>.
|
||||||
|
*/
|
||||||
|
val _1: Parameter<Int?> = Internal.createParameter("_1", SQLDataType.INTEGER, false, true)
|
||||||
|
}
|
||||||
|
|
||||||
|
init {
|
||||||
|
returnParameter = GenRandomBytes.RETURN_VALUE
|
||||||
|
addInParameter(GenRandomBytes._1)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_1</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__1(value: Int?): Unit = setValue(GenRandomBytes._1, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_1</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__1(field: Field<Int?>): Unit {
|
||||||
|
setField(GenRandomBytes._1, field)
|
||||||
|
}
|
||||||
|
}
|
||||||
+34
@@ -0,0 +1,34 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package de.fiereu.openmmo.server.login.jooq.routines
|
||||||
|
|
||||||
|
|
||||||
|
import de.fiereu.openmmo.server.login.jooq.Public
|
||||||
|
|
||||||
|
import java.util.UUID
|
||||||
|
|
||||||
|
import org.jooq.Parameter
|
||||||
|
import org.jooq.impl.AbstractRoutine
|
||||||
|
import org.jooq.impl.DSL
|
||||||
|
import org.jooq.impl.Internal
|
||||||
|
import org.jooq.impl.SQLDataType
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Suppress("warnings")
|
||||||
|
open class GenRandomUuid : AbstractRoutine<UUID>("gen_random_uuid", Public.PUBLIC, DSL.comment(""), SQLDataType.UUID) {
|
||||||
|
companion object {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.gen_random_uuid.RETURN_VALUE</code>.
|
||||||
|
*/
|
||||||
|
val RETURN_VALUE: Parameter<UUID?> = Internal.createParameter("RETURN_VALUE", SQLDataType.UUID, false, false)
|
||||||
|
}
|
||||||
|
|
||||||
|
init {
|
||||||
|
returnParameter = GenRandomUuid.RETURN_VALUE
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,53 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package de.fiereu.openmmo.server.login.jooq.routines
|
||||||
|
|
||||||
|
|
||||||
|
import de.fiereu.openmmo.server.login.jooq.Public
|
||||||
|
|
||||||
|
import org.jooq.Field
|
||||||
|
import org.jooq.Parameter
|
||||||
|
import org.jooq.impl.AbstractRoutine
|
||||||
|
import org.jooq.impl.DSL
|
||||||
|
import org.jooq.impl.Internal
|
||||||
|
import org.jooq.impl.SQLDataType
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Suppress("warnings")
|
||||||
|
open class GenSalt1 : AbstractRoutine<String>("gen_salt", Public.PUBLIC, DSL.comment(""), SQLDataType.CLOB) {
|
||||||
|
companion object {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.gen_salt.RETURN_VALUE</code>.
|
||||||
|
*/
|
||||||
|
val RETURN_VALUE: Parameter<String?> = Internal.createParameter("RETURN_VALUE", SQLDataType.CLOB, false, false)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.gen_salt._1</code>.
|
||||||
|
*/
|
||||||
|
val _1: Parameter<String?> = Internal.createParameter("_1", SQLDataType.CLOB, false, true)
|
||||||
|
}
|
||||||
|
|
||||||
|
init {
|
||||||
|
returnParameter = GenSalt1.RETURN_VALUE
|
||||||
|
addInParameter(GenSalt1._1)
|
||||||
|
setOverloaded(true)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_1</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__1(value: String?): Unit = setValue(GenSalt1._1, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_1</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__1(field: Field<String?>): Unit {
|
||||||
|
setField(GenSalt1._1, field)
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,72 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package de.fiereu.openmmo.server.login.jooq.routines
|
||||||
|
|
||||||
|
|
||||||
|
import de.fiereu.openmmo.server.login.jooq.Public
|
||||||
|
|
||||||
|
import org.jooq.Field
|
||||||
|
import org.jooq.Parameter
|
||||||
|
import org.jooq.impl.AbstractRoutine
|
||||||
|
import org.jooq.impl.DSL
|
||||||
|
import org.jooq.impl.Internal
|
||||||
|
import org.jooq.impl.SQLDataType
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Suppress("warnings")
|
||||||
|
open class GenSalt2 : AbstractRoutine<String>("gen_salt", Public.PUBLIC, DSL.comment(""), SQLDataType.CLOB) {
|
||||||
|
companion object {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.gen_salt.RETURN_VALUE</code>.
|
||||||
|
*/
|
||||||
|
val RETURN_VALUE: Parameter<String?> = Internal.createParameter("RETURN_VALUE", SQLDataType.CLOB, false, false)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.gen_salt._1</code>.
|
||||||
|
*/
|
||||||
|
val _1: Parameter<String?> = Internal.createParameter("_1", SQLDataType.CLOB, false, true)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.gen_salt._2</code>.
|
||||||
|
*/
|
||||||
|
val _2: Parameter<Int?> = Internal.createParameter("_2", SQLDataType.INTEGER, false, true)
|
||||||
|
}
|
||||||
|
|
||||||
|
init {
|
||||||
|
returnParameter = GenSalt2.RETURN_VALUE
|
||||||
|
addInParameter(GenSalt2._1)
|
||||||
|
addInParameter(GenSalt2._2)
|
||||||
|
setOverloaded(true)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_1</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__1(value: String?): Unit = setValue(GenSalt2._1, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_1</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__1(field: Field<String?>): Unit {
|
||||||
|
setField(GenSalt2._1, field)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_2</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__2(value: Int?): Unit = setValue(GenSalt2._2, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_2</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__2(field: Field<Int?>): Unit {
|
||||||
|
setField(GenSalt2._2, field)
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,91 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package de.fiereu.openmmo.server.login.jooq.routines
|
||||||
|
|
||||||
|
|
||||||
|
import de.fiereu.openmmo.server.login.jooq.Public
|
||||||
|
|
||||||
|
import org.jooq.Field
|
||||||
|
import org.jooq.Parameter
|
||||||
|
import org.jooq.impl.AbstractRoutine
|
||||||
|
import org.jooq.impl.DSL
|
||||||
|
import org.jooq.impl.Internal
|
||||||
|
import org.jooq.impl.SQLDataType
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Suppress("warnings")
|
||||||
|
open class Hmac1 : AbstractRoutine<ByteArray>("hmac", Public.PUBLIC, DSL.comment(""), SQLDataType.BLOB) {
|
||||||
|
companion object {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.hmac.RETURN_VALUE</code>.
|
||||||
|
*/
|
||||||
|
val RETURN_VALUE: Parameter<ByteArray?> = Internal.createParameter("RETURN_VALUE", SQLDataType.BLOB, false, false)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.hmac._1</code>.
|
||||||
|
*/
|
||||||
|
val _1: Parameter<String?> = Internal.createParameter("_1", SQLDataType.CLOB, false, true)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.hmac._2</code>.
|
||||||
|
*/
|
||||||
|
val _2: Parameter<String?> = Internal.createParameter("_2", SQLDataType.CLOB, false, true)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.hmac._3</code>.
|
||||||
|
*/
|
||||||
|
val _3: Parameter<String?> = Internal.createParameter("_3", SQLDataType.CLOB, false, true)
|
||||||
|
}
|
||||||
|
|
||||||
|
init {
|
||||||
|
returnParameter = Hmac1.RETURN_VALUE
|
||||||
|
addInParameter(Hmac1._1)
|
||||||
|
addInParameter(Hmac1._2)
|
||||||
|
addInParameter(Hmac1._3)
|
||||||
|
setOverloaded(true)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_1</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__1(value: String?): Unit = setValue(Hmac1._1, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_1</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__1(field: Field<String?>): Unit {
|
||||||
|
setField(Hmac1._1, field)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_2</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__2(value: String?): Unit = setValue(Hmac1._2, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_2</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__2(field: Field<String?>): Unit {
|
||||||
|
setField(Hmac1._2, field)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_3</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__3(value: String?): Unit = setValue(Hmac1._3, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_3</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__3(field: Field<String?>): Unit {
|
||||||
|
setField(Hmac1._3, field)
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,91 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package de.fiereu.openmmo.server.login.jooq.routines
|
||||||
|
|
||||||
|
|
||||||
|
import de.fiereu.openmmo.server.login.jooq.Public
|
||||||
|
|
||||||
|
import org.jooq.Field
|
||||||
|
import org.jooq.Parameter
|
||||||
|
import org.jooq.impl.AbstractRoutine
|
||||||
|
import org.jooq.impl.DSL
|
||||||
|
import org.jooq.impl.Internal
|
||||||
|
import org.jooq.impl.SQLDataType
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Suppress("warnings")
|
||||||
|
open class Hmac2 : AbstractRoutine<ByteArray>("hmac", Public.PUBLIC, DSL.comment(""), SQLDataType.BLOB) {
|
||||||
|
companion object {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.hmac.RETURN_VALUE</code>.
|
||||||
|
*/
|
||||||
|
val RETURN_VALUE: Parameter<ByteArray?> = Internal.createParameter("RETURN_VALUE", SQLDataType.BLOB, false, false)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.hmac._1</code>.
|
||||||
|
*/
|
||||||
|
val _1: Parameter<ByteArray?> = Internal.createParameter("_1", SQLDataType.BLOB, false, true)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.hmac._2</code>.
|
||||||
|
*/
|
||||||
|
val _2: Parameter<ByteArray?> = Internal.createParameter("_2", SQLDataType.BLOB, false, true)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.hmac._3</code>.
|
||||||
|
*/
|
||||||
|
val _3: Parameter<String?> = Internal.createParameter("_3", SQLDataType.CLOB, false, true)
|
||||||
|
}
|
||||||
|
|
||||||
|
init {
|
||||||
|
returnParameter = Hmac2.RETURN_VALUE
|
||||||
|
addInParameter(Hmac2._1)
|
||||||
|
addInParameter(Hmac2._2)
|
||||||
|
addInParameter(Hmac2._3)
|
||||||
|
setOverloaded(true)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_1</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__1(value: ByteArray?): Unit = setValue(Hmac2._1, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_1</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__1(field: Field<ByteArray?>): Unit {
|
||||||
|
setField(Hmac2._1, field)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_2</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__2(value: ByteArray?): Unit = setValue(Hmac2._2, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_2</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__2(field: Field<ByteArray?>): Unit {
|
||||||
|
setField(Hmac2._2, field)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_3</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__3(value: String?): Unit = setValue(Hmac2._3, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_3</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__3(field: Field<String?>): Unit {
|
||||||
|
setField(Hmac2._3, field)
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,52 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package de.fiereu.openmmo.server.login.jooq.routines
|
||||||
|
|
||||||
|
|
||||||
|
import de.fiereu.openmmo.server.login.jooq.Public
|
||||||
|
|
||||||
|
import org.jooq.Field
|
||||||
|
import org.jooq.Parameter
|
||||||
|
import org.jooq.impl.AbstractRoutine
|
||||||
|
import org.jooq.impl.DSL
|
||||||
|
import org.jooq.impl.Internal
|
||||||
|
import org.jooq.impl.SQLDataType
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Suppress("warnings")
|
||||||
|
open class PgpKeyId : AbstractRoutine<String>("pgp_key_id", Public.PUBLIC, DSL.comment(""), SQLDataType.CLOB) {
|
||||||
|
companion object {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.pgp_key_id.RETURN_VALUE</code>.
|
||||||
|
*/
|
||||||
|
val RETURN_VALUE: Parameter<String?> = Internal.createParameter("RETURN_VALUE", SQLDataType.CLOB, false, false)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.pgp_key_id._1</code>.
|
||||||
|
*/
|
||||||
|
val _1: Parameter<ByteArray?> = Internal.createParameter("_1", SQLDataType.BLOB, false, true)
|
||||||
|
}
|
||||||
|
|
||||||
|
init {
|
||||||
|
returnParameter = PgpKeyId.RETURN_VALUE
|
||||||
|
addInParameter(PgpKeyId._1)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_1</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__1(value: ByteArray?): Unit = setValue(PgpKeyId._1, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_1</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__1(field: Field<ByteArray?>): Unit {
|
||||||
|
setField(PgpKeyId._1, field)
|
||||||
|
}
|
||||||
|
}
|
||||||
+72
@@ -0,0 +1,72 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package de.fiereu.openmmo.server.login.jooq.routines
|
||||||
|
|
||||||
|
|
||||||
|
import de.fiereu.openmmo.server.login.jooq.Public
|
||||||
|
|
||||||
|
import org.jooq.Field
|
||||||
|
import org.jooq.Parameter
|
||||||
|
import org.jooq.impl.AbstractRoutine
|
||||||
|
import org.jooq.impl.DSL
|
||||||
|
import org.jooq.impl.Internal
|
||||||
|
import org.jooq.impl.SQLDataType
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Suppress("warnings")
|
||||||
|
open class PgpPubDecrypt1 : AbstractRoutine<String>("pgp_pub_decrypt", Public.PUBLIC, DSL.comment(""), SQLDataType.CLOB) {
|
||||||
|
companion object {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.pgp_pub_decrypt.RETURN_VALUE</code>.
|
||||||
|
*/
|
||||||
|
val RETURN_VALUE: Parameter<String?> = Internal.createParameter("RETURN_VALUE", SQLDataType.CLOB, false, false)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.pgp_pub_decrypt._1</code>.
|
||||||
|
*/
|
||||||
|
val _1: Parameter<ByteArray?> = Internal.createParameter("_1", SQLDataType.BLOB, false, true)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.pgp_pub_decrypt._2</code>.
|
||||||
|
*/
|
||||||
|
val _2: Parameter<ByteArray?> = Internal.createParameter("_2", SQLDataType.BLOB, false, true)
|
||||||
|
}
|
||||||
|
|
||||||
|
init {
|
||||||
|
returnParameter = PgpPubDecrypt1.RETURN_VALUE
|
||||||
|
addInParameter(PgpPubDecrypt1._1)
|
||||||
|
addInParameter(PgpPubDecrypt1._2)
|
||||||
|
setOverloaded(true)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_1</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__1(value: ByteArray?): Unit = setValue(PgpPubDecrypt1._1, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_1</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__1(field: Field<ByteArray?>): Unit {
|
||||||
|
setField(PgpPubDecrypt1._1, field)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_2</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__2(value: ByteArray?): Unit = setValue(PgpPubDecrypt1._2, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_2</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__2(field: Field<ByteArray?>): Unit {
|
||||||
|
setField(PgpPubDecrypt1._2, field)
|
||||||
|
}
|
||||||
|
}
|
||||||
+91
@@ -0,0 +1,91 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package de.fiereu.openmmo.server.login.jooq.routines
|
||||||
|
|
||||||
|
|
||||||
|
import de.fiereu.openmmo.server.login.jooq.Public
|
||||||
|
|
||||||
|
import org.jooq.Field
|
||||||
|
import org.jooq.Parameter
|
||||||
|
import org.jooq.impl.AbstractRoutine
|
||||||
|
import org.jooq.impl.DSL
|
||||||
|
import org.jooq.impl.Internal
|
||||||
|
import org.jooq.impl.SQLDataType
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Suppress("warnings")
|
||||||
|
open class PgpPubDecrypt2 : AbstractRoutine<String>("pgp_pub_decrypt", Public.PUBLIC, DSL.comment(""), SQLDataType.CLOB) {
|
||||||
|
companion object {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.pgp_pub_decrypt.RETURN_VALUE</code>.
|
||||||
|
*/
|
||||||
|
val RETURN_VALUE: Parameter<String?> = Internal.createParameter("RETURN_VALUE", SQLDataType.CLOB, false, false)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.pgp_pub_decrypt._1</code>.
|
||||||
|
*/
|
||||||
|
val _1: Parameter<ByteArray?> = Internal.createParameter("_1", SQLDataType.BLOB, false, true)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.pgp_pub_decrypt._2</code>.
|
||||||
|
*/
|
||||||
|
val _2: Parameter<ByteArray?> = Internal.createParameter("_2", SQLDataType.BLOB, false, true)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.pgp_pub_decrypt._3</code>.
|
||||||
|
*/
|
||||||
|
val _3: Parameter<String?> = Internal.createParameter("_3", SQLDataType.CLOB, false, true)
|
||||||
|
}
|
||||||
|
|
||||||
|
init {
|
||||||
|
returnParameter = PgpPubDecrypt2.RETURN_VALUE
|
||||||
|
addInParameter(PgpPubDecrypt2._1)
|
||||||
|
addInParameter(PgpPubDecrypt2._2)
|
||||||
|
addInParameter(PgpPubDecrypt2._3)
|
||||||
|
setOverloaded(true)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_1</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__1(value: ByteArray?): Unit = setValue(PgpPubDecrypt2._1, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_1</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__1(field: Field<ByteArray?>): Unit {
|
||||||
|
setField(PgpPubDecrypt2._1, field)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_2</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__2(value: ByteArray?): Unit = setValue(PgpPubDecrypt2._2, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_2</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__2(field: Field<ByteArray?>): Unit {
|
||||||
|
setField(PgpPubDecrypt2._2, field)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_3</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__3(value: String?): Unit = setValue(PgpPubDecrypt2._3, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_3</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__3(field: Field<String?>): Unit {
|
||||||
|
setField(PgpPubDecrypt2._3, field)
|
||||||
|
}
|
||||||
|
}
|
||||||
+110
@@ -0,0 +1,110 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package de.fiereu.openmmo.server.login.jooq.routines
|
||||||
|
|
||||||
|
|
||||||
|
import de.fiereu.openmmo.server.login.jooq.Public
|
||||||
|
|
||||||
|
import org.jooq.Field
|
||||||
|
import org.jooq.Parameter
|
||||||
|
import org.jooq.impl.AbstractRoutine
|
||||||
|
import org.jooq.impl.DSL
|
||||||
|
import org.jooq.impl.Internal
|
||||||
|
import org.jooq.impl.SQLDataType
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Suppress("warnings")
|
||||||
|
open class PgpPubDecrypt3 : AbstractRoutine<String>("pgp_pub_decrypt", Public.PUBLIC, DSL.comment(""), SQLDataType.CLOB) {
|
||||||
|
companion object {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.pgp_pub_decrypt.RETURN_VALUE</code>.
|
||||||
|
*/
|
||||||
|
val RETURN_VALUE: Parameter<String?> = Internal.createParameter("RETURN_VALUE", SQLDataType.CLOB, false, false)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.pgp_pub_decrypt._1</code>.
|
||||||
|
*/
|
||||||
|
val _1: Parameter<ByteArray?> = Internal.createParameter("_1", SQLDataType.BLOB, false, true)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.pgp_pub_decrypt._2</code>.
|
||||||
|
*/
|
||||||
|
val _2: Parameter<ByteArray?> = Internal.createParameter("_2", SQLDataType.BLOB, false, true)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.pgp_pub_decrypt._3</code>.
|
||||||
|
*/
|
||||||
|
val _3: Parameter<String?> = Internal.createParameter("_3", SQLDataType.CLOB, false, true)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.pgp_pub_decrypt._4</code>.
|
||||||
|
*/
|
||||||
|
val _4: Parameter<String?> = Internal.createParameter("_4", SQLDataType.CLOB, false, true)
|
||||||
|
}
|
||||||
|
|
||||||
|
init {
|
||||||
|
returnParameter = PgpPubDecrypt3.RETURN_VALUE
|
||||||
|
addInParameter(PgpPubDecrypt3._1)
|
||||||
|
addInParameter(PgpPubDecrypt3._2)
|
||||||
|
addInParameter(PgpPubDecrypt3._3)
|
||||||
|
addInParameter(PgpPubDecrypt3._4)
|
||||||
|
setOverloaded(true)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_1</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__1(value: ByteArray?): Unit = setValue(PgpPubDecrypt3._1, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_1</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__1(field: Field<ByteArray?>): Unit {
|
||||||
|
setField(PgpPubDecrypt3._1, field)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_2</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__2(value: ByteArray?): Unit = setValue(PgpPubDecrypt3._2, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_2</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__2(field: Field<ByteArray?>): Unit {
|
||||||
|
setField(PgpPubDecrypt3._2, field)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_3</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__3(value: String?): Unit = setValue(PgpPubDecrypt3._3, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_3</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__3(field: Field<String?>): Unit {
|
||||||
|
setField(PgpPubDecrypt3._3, field)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_4</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__4(value: String?): Unit = setValue(PgpPubDecrypt3._4, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_4</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__4(field: Field<String?>): Unit {
|
||||||
|
setField(PgpPubDecrypt3._4, field)
|
||||||
|
}
|
||||||
|
}
|
||||||
+72
@@ -0,0 +1,72 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package de.fiereu.openmmo.server.login.jooq.routines
|
||||||
|
|
||||||
|
|
||||||
|
import de.fiereu.openmmo.server.login.jooq.Public
|
||||||
|
|
||||||
|
import org.jooq.Field
|
||||||
|
import org.jooq.Parameter
|
||||||
|
import org.jooq.impl.AbstractRoutine
|
||||||
|
import org.jooq.impl.DSL
|
||||||
|
import org.jooq.impl.Internal
|
||||||
|
import org.jooq.impl.SQLDataType
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Suppress("warnings")
|
||||||
|
open class PgpPubDecryptBytea1 : AbstractRoutine<ByteArray>("pgp_pub_decrypt_bytea", Public.PUBLIC, DSL.comment(""), SQLDataType.BLOB) {
|
||||||
|
companion object {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.pgp_pub_decrypt_bytea.RETURN_VALUE</code>.
|
||||||
|
*/
|
||||||
|
val RETURN_VALUE: Parameter<ByteArray?> = Internal.createParameter("RETURN_VALUE", SQLDataType.BLOB, false, false)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.pgp_pub_decrypt_bytea._1</code>.
|
||||||
|
*/
|
||||||
|
val _1: Parameter<ByteArray?> = Internal.createParameter("_1", SQLDataType.BLOB, false, true)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.pgp_pub_decrypt_bytea._2</code>.
|
||||||
|
*/
|
||||||
|
val _2: Parameter<ByteArray?> = Internal.createParameter("_2", SQLDataType.BLOB, false, true)
|
||||||
|
}
|
||||||
|
|
||||||
|
init {
|
||||||
|
returnParameter = PgpPubDecryptBytea1.RETURN_VALUE
|
||||||
|
addInParameter(PgpPubDecryptBytea1._1)
|
||||||
|
addInParameter(PgpPubDecryptBytea1._2)
|
||||||
|
setOverloaded(true)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_1</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__1(value: ByteArray?): Unit = setValue(PgpPubDecryptBytea1._1, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_1</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__1(field: Field<ByteArray?>): Unit {
|
||||||
|
setField(PgpPubDecryptBytea1._1, field)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_2</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__2(value: ByteArray?): Unit = setValue(PgpPubDecryptBytea1._2, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_2</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__2(field: Field<ByteArray?>): Unit {
|
||||||
|
setField(PgpPubDecryptBytea1._2, field)
|
||||||
|
}
|
||||||
|
}
|
||||||
+91
@@ -0,0 +1,91 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package de.fiereu.openmmo.server.login.jooq.routines
|
||||||
|
|
||||||
|
|
||||||
|
import de.fiereu.openmmo.server.login.jooq.Public
|
||||||
|
|
||||||
|
import org.jooq.Field
|
||||||
|
import org.jooq.Parameter
|
||||||
|
import org.jooq.impl.AbstractRoutine
|
||||||
|
import org.jooq.impl.DSL
|
||||||
|
import org.jooq.impl.Internal
|
||||||
|
import org.jooq.impl.SQLDataType
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Suppress("warnings")
|
||||||
|
open class PgpPubDecryptBytea2 : AbstractRoutine<ByteArray>("pgp_pub_decrypt_bytea", Public.PUBLIC, DSL.comment(""), SQLDataType.BLOB) {
|
||||||
|
companion object {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.pgp_pub_decrypt_bytea.RETURN_VALUE</code>.
|
||||||
|
*/
|
||||||
|
val RETURN_VALUE: Parameter<ByteArray?> = Internal.createParameter("RETURN_VALUE", SQLDataType.BLOB, false, false)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.pgp_pub_decrypt_bytea._1</code>.
|
||||||
|
*/
|
||||||
|
val _1: Parameter<ByteArray?> = Internal.createParameter("_1", SQLDataType.BLOB, false, true)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.pgp_pub_decrypt_bytea._2</code>.
|
||||||
|
*/
|
||||||
|
val _2: Parameter<ByteArray?> = Internal.createParameter("_2", SQLDataType.BLOB, false, true)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.pgp_pub_decrypt_bytea._3</code>.
|
||||||
|
*/
|
||||||
|
val _3: Parameter<String?> = Internal.createParameter("_3", SQLDataType.CLOB, false, true)
|
||||||
|
}
|
||||||
|
|
||||||
|
init {
|
||||||
|
returnParameter = PgpPubDecryptBytea2.RETURN_VALUE
|
||||||
|
addInParameter(PgpPubDecryptBytea2._1)
|
||||||
|
addInParameter(PgpPubDecryptBytea2._2)
|
||||||
|
addInParameter(PgpPubDecryptBytea2._3)
|
||||||
|
setOverloaded(true)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_1</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__1(value: ByteArray?): Unit = setValue(PgpPubDecryptBytea2._1, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_1</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__1(field: Field<ByteArray?>): Unit {
|
||||||
|
setField(PgpPubDecryptBytea2._1, field)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_2</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__2(value: ByteArray?): Unit = setValue(PgpPubDecryptBytea2._2, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_2</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__2(field: Field<ByteArray?>): Unit {
|
||||||
|
setField(PgpPubDecryptBytea2._2, field)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_3</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__3(value: String?): Unit = setValue(PgpPubDecryptBytea2._3, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_3</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__3(field: Field<String?>): Unit {
|
||||||
|
setField(PgpPubDecryptBytea2._3, field)
|
||||||
|
}
|
||||||
|
}
|
||||||
+110
@@ -0,0 +1,110 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package de.fiereu.openmmo.server.login.jooq.routines
|
||||||
|
|
||||||
|
|
||||||
|
import de.fiereu.openmmo.server.login.jooq.Public
|
||||||
|
|
||||||
|
import org.jooq.Field
|
||||||
|
import org.jooq.Parameter
|
||||||
|
import org.jooq.impl.AbstractRoutine
|
||||||
|
import org.jooq.impl.DSL
|
||||||
|
import org.jooq.impl.Internal
|
||||||
|
import org.jooq.impl.SQLDataType
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Suppress("warnings")
|
||||||
|
open class PgpPubDecryptBytea3 : AbstractRoutine<ByteArray>("pgp_pub_decrypt_bytea", Public.PUBLIC, DSL.comment(""), SQLDataType.BLOB) {
|
||||||
|
companion object {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.pgp_pub_decrypt_bytea.RETURN_VALUE</code>.
|
||||||
|
*/
|
||||||
|
val RETURN_VALUE: Parameter<ByteArray?> = Internal.createParameter("RETURN_VALUE", SQLDataType.BLOB, false, false)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.pgp_pub_decrypt_bytea._1</code>.
|
||||||
|
*/
|
||||||
|
val _1: Parameter<ByteArray?> = Internal.createParameter("_1", SQLDataType.BLOB, false, true)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.pgp_pub_decrypt_bytea._2</code>.
|
||||||
|
*/
|
||||||
|
val _2: Parameter<ByteArray?> = Internal.createParameter("_2", SQLDataType.BLOB, false, true)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.pgp_pub_decrypt_bytea._3</code>.
|
||||||
|
*/
|
||||||
|
val _3: Parameter<String?> = Internal.createParameter("_3", SQLDataType.CLOB, false, true)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.pgp_pub_decrypt_bytea._4</code>.
|
||||||
|
*/
|
||||||
|
val _4: Parameter<String?> = Internal.createParameter("_4", SQLDataType.CLOB, false, true)
|
||||||
|
}
|
||||||
|
|
||||||
|
init {
|
||||||
|
returnParameter = PgpPubDecryptBytea3.RETURN_VALUE
|
||||||
|
addInParameter(PgpPubDecryptBytea3._1)
|
||||||
|
addInParameter(PgpPubDecryptBytea3._2)
|
||||||
|
addInParameter(PgpPubDecryptBytea3._3)
|
||||||
|
addInParameter(PgpPubDecryptBytea3._4)
|
||||||
|
setOverloaded(true)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_1</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__1(value: ByteArray?): Unit = setValue(PgpPubDecryptBytea3._1, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_1</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__1(field: Field<ByteArray?>): Unit {
|
||||||
|
setField(PgpPubDecryptBytea3._1, field)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_2</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__2(value: ByteArray?): Unit = setValue(PgpPubDecryptBytea3._2, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_2</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__2(field: Field<ByteArray?>): Unit {
|
||||||
|
setField(PgpPubDecryptBytea3._2, field)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_3</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__3(value: String?): Unit = setValue(PgpPubDecryptBytea3._3, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_3</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__3(field: Field<String?>): Unit {
|
||||||
|
setField(PgpPubDecryptBytea3._3, field)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_4</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__4(value: String?): Unit = setValue(PgpPubDecryptBytea3._4, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_4</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__4(field: Field<String?>): Unit {
|
||||||
|
setField(PgpPubDecryptBytea3._4, field)
|
||||||
|
}
|
||||||
|
}
|
||||||
+72
@@ -0,0 +1,72 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package de.fiereu.openmmo.server.login.jooq.routines
|
||||||
|
|
||||||
|
|
||||||
|
import de.fiereu.openmmo.server.login.jooq.Public
|
||||||
|
|
||||||
|
import org.jooq.Field
|
||||||
|
import org.jooq.Parameter
|
||||||
|
import org.jooq.impl.AbstractRoutine
|
||||||
|
import org.jooq.impl.DSL
|
||||||
|
import org.jooq.impl.Internal
|
||||||
|
import org.jooq.impl.SQLDataType
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Suppress("warnings")
|
||||||
|
open class PgpPubEncrypt1 : AbstractRoutine<ByteArray>("pgp_pub_encrypt", Public.PUBLIC, DSL.comment(""), SQLDataType.BLOB) {
|
||||||
|
companion object {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.pgp_pub_encrypt.RETURN_VALUE</code>.
|
||||||
|
*/
|
||||||
|
val RETURN_VALUE: Parameter<ByteArray?> = Internal.createParameter("RETURN_VALUE", SQLDataType.BLOB, false, false)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.pgp_pub_encrypt._1</code>.
|
||||||
|
*/
|
||||||
|
val _1: Parameter<String?> = Internal.createParameter("_1", SQLDataType.CLOB, false, true)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.pgp_pub_encrypt._2</code>.
|
||||||
|
*/
|
||||||
|
val _2: Parameter<ByteArray?> = Internal.createParameter("_2", SQLDataType.BLOB, false, true)
|
||||||
|
}
|
||||||
|
|
||||||
|
init {
|
||||||
|
returnParameter = PgpPubEncrypt1.RETURN_VALUE
|
||||||
|
addInParameter(PgpPubEncrypt1._1)
|
||||||
|
addInParameter(PgpPubEncrypt1._2)
|
||||||
|
setOverloaded(true)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_1</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__1(value: String?): Unit = setValue(PgpPubEncrypt1._1, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_1</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__1(field: Field<String?>): Unit {
|
||||||
|
setField(PgpPubEncrypt1._1, field)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_2</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__2(value: ByteArray?): Unit = setValue(PgpPubEncrypt1._2, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_2</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__2(field: Field<ByteArray?>): Unit {
|
||||||
|
setField(PgpPubEncrypt1._2, field)
|
||||||
|
}
|
||||||
|
}
|
||||||
+91
@@ -0,0 +1,91 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package de.fiereu.openmmo.server.login.jooq.routines
|
||||||
|
|
||||||
|
|
||||||
|
import de.fiereu.openmmo.server.login.jooq.Public
|
||||||
|
|
||||||
|
import org.jooq.Field
|
||||||
|
import org.jooq.Parameter
|
||||||
|
import org.jooq.impl.AbstractRoutine
|
||||||
|
import org.jooq.impl.DSL
|
||||||
|
import org.jooq.impl.Internal
|
||||||
|
import org.jooq.impl.SQLDataType
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Suppress("warnings")
|
||||||
|
open class PgpPubEncrypt2 : AbstractRoutine<ByteArray>("pgp_pub_encrypt", Public.PUBLIC, DSL.comment(""), SQLDataType.BLOB) {
|
||||||
|
companion object {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.pgp_pub_encrypt.RETURN_VALUE</code>.
|
||||||
|
*/
|
||||||
|
val RETURN_VALUE: Parameter<ByteArray?> = Internal.createParameter("RETURN_VALUE", SQLDataType.BLOB, false, false)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.pgp_pub_encrypt._1</code>.
|
||||||
|
*/
|
||||||
|
val _1: Parameter<String?> = Internal.createParameter("_1", SQLDataType.CLOB, false, true)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.pgp_pub_encrypt._2</code>.
|
||||||
|
*/
|
||||||
|
val _2: Parameter<ByteArray?> = Internal.createParameter("_2", SQLDataType.BLOB, false, true)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.pgp_pub_encrypt._3</code>.
|
||||||
|
*/
|
||||||
|
val _3: Parameter<String?> = Internal.createParameter("_3", SQLDataType.CLOB, false, true)
|
||||||
|
}
|
||||||
|
|
||||||
|
init {
|
||||||
|
returnParameter = PgpPubEncrypt2.RETURN_VALUE
|
||||||
|
addInParameter(PgpPubEncrypt2._1)
|
||||||
|
addInParameter(PgpPubEncrypt2._2)
|
||||||
|
addInParameter(PgpPubEncrypt2._3)
|
||||||
|
setOverloaded(true)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_1</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__1(value: String?): Unit = setValue(PgpPubEncrypt2._1, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_1</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__1(field: Field<String?>): Unit {
|
||||||
|
setField(PgpPubEncrypt2._1, field)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_2</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__2(value: ByteArray?): Unit = setValue(PgpPubEncrypt2._2, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_2</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__2(field: Field<ByteArray?>): Unit {
|
||||||
|
setField(PgpPubEncrypt2._2, field)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_3</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__3(value: String?): Unit = setValue(PgpPubEncrypt2._3, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_3</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__3(field: Field<String?>): Unit {
|
||||||
|
setField(PgpPubEncrypt2._3, field)
|
||||||
|
}
|
||||||
|
}
|
||||||
+72
@@ -0,0 +1,72 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package de.fiereu.openmmo.server.login.jooq.routines
|
||||||
|
|
||||||
|
|
||||||
|
import de.fiereu.openmmo.server.login.jooq.Public
|
||||||
|
|
||||||
|
import org.jooq.Field
|
||||||
|
import org.jooq.Parameter
|
||||||
|
import org.jooq.impl.AbstractRoutine
|
||||||
|
import org.jooq.impl.DSL
|
||||||
|
import org.jooq.impl.Internal
|
||||||
|
import org.jooq.impl.SQLDataType
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Suppress("warnings")
|
||||||
|
open class PgpPubEncryptBytea1 : AbstractRoutine<ByteArray>("pgp_pub_encrypt_bytea", Public.PUBLIC, DSL.comment(""), SQLDataType.BLOB) {
|
||||||
|
companion object {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.pgp_pub_encrypt_bytea.RETURN_VALUE</code>.
|
||||||
|
*/
|
||||||
|
val RETURN_VALUE: Parameter<ByteArray?> = Internal.createParameter("RETURN_VALUE", SQLDataType.BLOB, false, false)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.pgp_pub_encrypt_bytea._1</code>.
|
||||||
|
*/
|
||||||
|
val _1: Parameter<ByteArray?> = Internal.createParameter("_1", SQLDataType.BLOB, false, true)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.pgp_pub_encrypt_bytea._2</code>.
|
||||||
|
*/
|
||||||
|
val _2: Parameter<ByteArray?> = Internal.createParameter("_2", SQLDataType.BLOB, false, true)
|
||||||
|
}
|
||||||
|
|
||||||
|
init {
|
||||||
|
returnParameter = PgpPubEncryptBytea1.RETURN_VALUE
|
||||||
|
addInParameter(PgpPubEncryptBytea1._1)
|
||||||
|
addInParameter(PgpPubEncryptBytea1._2)
|
||||||
|
setOverloaded(true)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_1</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__1(value: ByteArray?): Unit = setValue(PgpPubEncryptBytea1._1, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_1</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__1(field: Field<ByteArray?>): Unit {
|
||||||
|
setField(PgpPubEncryptBytea1._1, field)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_2</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__2(value: ByteArray?): Unit = setValue(PgpPubEncryptBytea1._2, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_2</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__2(field: Field<ByteArray?>): Unit {
|
||||||
|
setField(PgpPubEncryptBytea1._2, field)
|
||||||
|
}
|
||||||
|
}
|
||||||
+91
@@ -0,0 +1,91 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package de.fiereu.openmmo.server.login.jooq.routines
|
||||||
|
|
||||||
|
|
||||||
|
import de.fiereu.openmmo.server.login.jooq.Public
|
||||||
|
|
||||||
|
import org.jooq.Field
|
||||||
|
import org.jooq.Parameter
|
||||||
|
import org.jooq.impl.AbstractRoutine
|
||||||
|
import org.jooq.impl.DSL
|
||||||
|
import org.jooq.impl.Internal
|
||||||
|
import org.jooq.impl.SQLDataType
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Suppress("warnings")
|
||||||
|
open class PgpPubEncryptBytea2 : AbstractRoutine<ByteArray>("pgp_pub_encrypt_bytea", Public.PUBLIC, DSL.comment(""), SQLDataType.BLOB) {
|
||||||
|
companion object {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.pgp_pub_encrypt_bytea.RETURN_VALUE</code>.
|
||||||
|
*/
|
||||||
|
val RETURN_VALUE: Parameter<ByteArray?> = Internal.createParameter("RETURN_VALUE", SQLDataType.BLOB, false, false)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.pgp_pub_encrypt_bytea._1</code>.
|
||||||
|
*/
|
||||||
|
val _1: Parameter<ByteArray?> = Internal.createParameter("_1", SQLDataType.BLOB, false, true)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.pgp_pub_encrypt_bytea._2</code>.
|
||||||
|
*/
|
||||||
|
val _2: Parameter<ByteArray?> = Internal.createParameter("_2", SQLDataType.BLOB, false, true)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.pgp_pub_encrypt_bytea._3</code>.
|
||||||
|
*/
|
||||||
|
val _3: Parameter<String?> = Internal.createParameter("_3", SQLDataType.CLOB, false, true)
|
||||||
|
}
|
||||||
|
|
||||||
|
init {
|
||||||
|
returnParameter = PgpPubEncryptBytea2.RETURN_VALUE
|
||||||
|
addInParameter(PgpPubEncryptBytea2._1)
|
||||||
|
addInParameter(PgpPubEncryptBytea2._2)
|
||||||
|
addInParameter(PgpPubEncryptBytea2._3)
|
||||||
|
setOverloaded(true)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_1</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__1(value: ByteArray?): Unit = setValue(PgpPubEncryptBytea2._1, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_1</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__1(field: Field<ByteArray?>): Unit {
|
||||||
|
setField(PgpPubEncryptBytea2._1, field)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_2</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__2(value: ByteArray?): Unit = setValue(PgpPubEncryptBytea2._2, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_2</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__2(field: Field<ByteArray?>): Unit {
|
||||||
|
setField(PgpPubEncryptBytea2._2, field)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_3</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__3(value: String?): Unit = setValue(PgpPubEncryptBytea2._3, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_3</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__3(field: Field<String?>): Unit {
|
||||||
|
setField(PgpPubEncryptBytea2._3, field)
|
||||||
|
}
|
||||||
|
}
|
||||||
+72
@@ -0,0 +1,72 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package de.fiereu.openmmo.server.login.jooq.routines
|
||||||
|
|
||||||
|
|
||||||
|
import de.fiereu.openmmo.server.login.jooq.Public
|
||||||
|
|
||||||
|
import org.jooq.Field
|
||||||
|
import org.jooq.Parameter
|
||||||
|
import org.jooq.impl.AbstractRoutine
|
||||||
|
import org.jooq.impl.DSL
|
||||||
|
import org.jooq.impl.Internal
|
||||||
|
import org.jooq.impl.SQLDataType
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Suppress("warnings")
|
||||||
|
open class PgpSymDecrypt1 : AbstractRoutine<String>("pgp_sym_decrypt", Public.PUBLIC, DSL.comment(""), SQLDataType.CLOB) {
|
||||||
|
companion object {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.pgp_sym_decrypt.RETURN_VALUE</code>.
|
||||||
|
*/
|
||||||
|
val RETURN_VALUE: Parameter<String?> = Internal.createParameter("RETURN_VALUE", SQLDataType.CLOB, false, false)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.pgp_sym_decrypt._1</code>.
|
||||||
|
*/
|
||||||
|
val _1: Parameter<ByteArray?> = Internal.createParameter("_1", SQLDataType.BLOB, false, true)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.pgp_sym_decrypt._2</code>.
|
||||||
|
*/
|
||||||
|
val _2: Parameter<String?> = Internal.createParameter("_2", SQLDataType.CLOB, false, true)
|
||||||
|
}
|
||||||
|
|
||||||
|
init {
|
||||||
|
returnParameter = PgpSymDecrypt1.RETURN_VALUE
|
||||||
|
addInParameter(PgpSymDecrypt1._1)
|
||||||
|
addInParameter(PgpSymDecrypt1._2)
|
||||||
|
setOverloaded(true)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_1</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__1(value: ByteArray?): Unit = setValue(PgpSymDecrypt1._1, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_1</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__1(field: Field<ByteArray?>): Unit {
|
||||||
|
setField(PgpSymDecrypt1._1, field)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_2</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__2(value: String?): Unit = setValue(PgpSymDecrypt1._2, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_2</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__2(field: Field<String?>): Unit {
|
||||||
|
setField(PgpSymDecrypt1._2, field)
|
||||||
|
}
|
||||||
|
}
|
||||||
+91
@@ -0,0 +1,91 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package de.fiereu.openmmo.server.login.jooq.routines
|
||||||
|
|
||||||
|
|
||||||
|
import de.fiereu.openmmo.server.login.jooq.Public
|
||||||
|
|
||||||
|
import org.jooq.Field
|
||||||
|
import org.jooq.Parameter
|
||||||
|
import org.jooq.impl.AbstractRoutine
|
||||||
|
import org.jooq.impl.DSL
|
||||||
|
import org.jooq.impl.Internal
|
||||||
|
import org.jooq.impl.SQLDataType
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Suppress("warnings")
|
||||||
|
open class PgpSymDecrypt2 : AbstractRoutine<String>("pgp_sym_decrypt", Public.PUBLIC, DSL.comment(""), SQLDataType.CLOB) {
|
||||||
|
companion object {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.pgp_sym_decrypt.RETURN_VALUE</code>.
|
||||||
|
*/
|
||||||
|
val RETURN_VALUE: Parameter<String?> = Internal.createParameter("RETURN_VALUE", SQLDataType.CLOB, false, false)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.pgp_sym_decrypt._1</code>.
|
||||||
|
*/
|
||||||
|
val _1: Parameter<ByteArray?> = Internal.createParameter("_1", SQLDataType.BLOB, false, true)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.pgp_sym_decrypt._2</code>.
|
||||||
|
*/
|
||||||
|
val _2: Parameter<String?> = Internal.createParameter("_2", SQLDataType.CLOB, false, true)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.pgp_sym_decrypt._3</code>.
|
||||||
|
*/
|
||||||
|
val _3: Parameter<String?> = Internal.createParameter("_3", SQLDataType.CLOB, false, true)
|
||||||
|
}
|
||||||
|
|
||||||
|
init {
|
||||||
|
returnParameter = PgpSymDecrypt2.RETURN_VALUE
|
||||||
|
addInParameter(PgpSymDecrypt2._1)
|
||||||
|
addInParameter(PgpSymDecrypt2._2)
|
||||||
|
addInParameter(PgpSymDecrypt2._3)
|
||||||
|
setOverloaded(true)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_1</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__1(value: ByteArray?): Unit = setValue(PgpSymDecrypt2._1, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_1</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__1(field: Field<ByteArray?>): Unit {
|
||||||
|
setField(PgpSymDecrypt2._1, field)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_2</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__2(value: String?): Unit = setValue(PgpSymDecrypt2._2, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_2</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__2(field: Field<String?>): Unit {
|
||||||
|
setField(PgpSymDecrypt2._2, field)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_3</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__3(value: String?): Unit = setValue(PgpSymDecrypt2._3, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_3</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__3(field: Field<String?>): Unit {
|
||||||
|
setField(PgpSymDecrypt2._3, field)
|
||||||
|
}
|
||||||
|
}
|
||||||
+72
@@ -0,0 +1,72 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package de.fiereu.openmmo.server.login.jooq.routines
|
||||||
|
|
||||||
|
|
||||||
|
import de.fiereu.openmmo.server.login.jooq.Public
|
||||||
|
|
||||||
|
import org.jooq.Field
|
||||||
|
import org.jooq.Parameter
|
||||||
|
import org.jooq.impl.AbstractRoutine
|
||||||
|
import org.jooq.impl.DSL
|
||||||
|
import org.jooq.impl.Internal
|
||||||
|
import org.jooq.impl.SQLDataType
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Suppress("warnings")
|
||||||
|
open class PgpSymDecryptBytea1 : AbstractRoutine<ByteArray>("pgp_sym_decrypt_bytea", Public.PUBLIC, DSL.comment(""), SQLDataType.BLOB) {
|
||||||
|
companion object {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.pgp_sym_decrypt_bytea.RETURN_VALUE</code>.
|
||||||
|
*/
|
||||||
|
val RETURN_VALUE: Parameter<ByteArray?> = Internal.createParameter("RETURN_VALUE", SQLDataType.BLOB, false, false)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.pgp_sym_decrypt_bytea._1</code>.
|
||||||
|
*/
|
||||||
|
val _1: Parameter<ByteArray?> = Internal.createParameter("_1", SQLDataType.BLOB, false, true)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.pgp_sym_decrypt_bytea._2</code>.
|
||||||
|
*/
|
||||||
|
val _2: Parameter<String?> = Internal.createParameter("_2", SQLDataType.CLOB, false, true)
|
||||||
|
}
|
||||||
|
|
||||||
|
init {
|
||||||
|
returnParameter = PgpSymDecryptBytea1.RETURN_VALUE
|
||||||
|
addInParameter(PgpSymDecryptBytea1._1)
|
||||||
|
addInParameter(PgpSymDecryptBytea1._2)
|
||||||
|
setOverloaded(true)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_1</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__1(value: ByteArray?): Unit = setValue(PgpSymDecryptBytea1._1, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_1</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__1(field: Field<ByteArray?>): Unit {
|
||||||
|
setField(PgpSymDecryptBytea1._1, field)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_2</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__2(value: String?): Unit = setValue(PgpSymDecryptBytea1._2, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_2</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__2(field: Field<String?>): Unit {
|
||||||
|
setField(PgpSymDecryptBytea1._2, field)
|
||||||
|
}
|
||||||
|
}
|
||||||
+91
@@ -0,0 +1,91 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package de.fiereu.openmmo.server.login.jooq.routines
|
||||||
|
|
||||||
|
|
||||||
|
import de.fiereu.openmmo.server.login.jooq.Public
|
||||||
|
|
||||||
|
import org.jooq.Field
|
||||||
|
import org.jooq.Parameter
|
||||||
|
import org.jooq.impl.AbstractRoutine
|
||||||
|
import org.jooq.impl.DSL
|
||||||
|
import org.jooq.impl.Internal
|
||||||
|
import org.jooq.impl.SQLDataType
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Suppress("warnings")
|
||||||
|
open class PgpSymDecryptBytea2 : AbstractRoutine<ByteArray>("pgp_sym_decrypt_bytea", Public.PUBLIC, DSL.comment(""), SQLDataType.BLOB) {
|
||||||
|
companion object {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.pgp_sym_decrypt_bytea.RETURN_VALUE</code>.
|
||||||
|
*/
|
||||||
|
val RETURN_VALUE: Parameter<ByteArray?> = Internal.createParameter("RETURN_VALUE", SQLDataType.BLOB, false, false)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.pgp_sym_decrypt_bytea._1</code>.
|
||||||
|
*/
|
||||||
|
val _1: Parameter<ByteArray?> = Internal.createParameter("_1", SQLDataType.BLOB, false, true)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.pgp_sym_decrypt_bytea._2</code>.
|
||||||
|
*/
|
||||||
|
val _2: Parameter<String?> = Internal.createParameter("_2", SQLDataType.CLOB, false, true)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.pgp_sym_decrypt_bytea._3</code>.
|
||||||
|
*/
|
||||||
|
val _3: Parameter<String?> = Internal.createParameter("_3", SQLDataType.CLOB, false, true)
|
||||||
|
}
|
||||||
|
|
||||||
|
init {
|
||||||
|
returnParameter = PgpSymDecryptBytea2.RETURN_VALUE
|
||||||
|
addInParameter(PgpSymDecryptBytea2._1)
|
||||||
|
addInParameter(PgpSymDecryptBytea2._2)
|
||||||
|
addInParameter(PgpSymDecryptBytea2._3)
|
||||||
|
setOverloaded(true)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_1</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__1(value: ByteArray?): Unit = setValue(PgpSymDecryptBytea2._1, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_1</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__1(field: Field<ByteArray?>): Unit {
|
||||||
|
setField(PgpSymDecryptBytea2._1, field)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_2</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__2(value: String?): Unit = setValue(PgpSymDecryptBytea2._2, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_2</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__2(field: Field<String?>): Unit {
|
||||||
|
setField(PgpSymDecryptBytea2._2, field)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_3</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__3(value: String?): Unit = setValue(PgpSymDecryptBytea2._3, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_3</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__3(field: Field<String?>): Unit {
|
||||||
|
setField(PgpSymDecryptBytea2._3, field)
|
||||||
|
}
|
||||||
|
}
|
||||||
+72
@@ -0,0 +1,72 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package de.fiereu.openmmo.server.login.jooq.routines
|
||||||
|
|
||||||
|
|
||||||
|
import de.fiereu.openmmo.server.login.jooq.Public
|
||||||
|
|
||||||
|
import org.jooq.Field
|
||||||
|
import org.jooq.Parameter
|
||||||
|
import org.jooq.impl.AbstractRoutine
|
||||||
|
import org.jooq.impl.DSL
|
||||||
|
import org.jooq.impl.Internal
|
||||||
|
import org.jooq.impl.SQLDataType
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Suppress("warnings")
|
||||||
|
open class PgpSymEncrypt1 : AbstractRoutine<ByteArray>("pgp_sym_encrypt", Public.PUBLIC, DSL.comment(""), SQLDataType.BLOB) {
|
||||||
|
companion object {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.pgp_sym_encrypt.RETURN_VALUE</code>.
|
||||||
|
*/
|
||||||
|
val RETURN_VALUE: Parameter<ByteArray?> = Internal.createParameter("RETURN_VALUE", SQLDataType.BLOB, false, false)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.pgp_sym_encrypt._1</code>.
|
||||||
|
*/
|
||||||
|
val _1: Parameter<String?> = Internal.createParameter("_1", SQLDataType.CLOB, false, true)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.pgp_sym_encrypt._2</code>.
|
||||||
|
*/
|
||||||
|
val _2: Parameter<String?> = Internal.createParameter("_2", SQLDataType.CLOB, false, true)
|
||||||
|
}
|
||||||
|
|
||||||
|
init {
|
||||||
|
returnParameter = PgpSymEncrypt1.RETURN_VALUE
|
||||||
|
addInParameter(PgpSymEncrypt1._1)
|
||||||
|
addInParameter(PgpSymEncrypt1._2)
|
||||||
|
setOverloaded(true)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_1</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__1(value: String?): Unit = setValue(PgpSymEncrypt1._1, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_1</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__1(field: Field<String?>): Unit {
|
||||||
|
setField(PgpSymEncrypt1._1, field)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_2</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__2(value: String?): Unit = setValue(PgpSymEncrypt1._2, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_2</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__2(field: Field<String?>): Unit {
|
||||||
|
setField(PgpSymEncrypt1._2, field)
|
||||||
|
}
|
||||||
|
}
|
||||||
+91
@@ -0,0 +1,91 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package de.fiereu.openmmo.server.login.jooq.routines
|
||||||
|
|
||||||
|
|
||||||
|
import de.fiereu.openmmo.server.login.jooq.Public
|
||||||
|
|
||||||
|
import org.jooq.Field
|
||||||
|
import org.jooq.Parameter
|
||||||
|
import org.jooq.impl.AbstractRoutine
|
||||||
|
import org.jooq.impl.DSL
|
||||||
|
import org.jooq.impl.Internal
|
||||||
|
import org.jooq.impl.SQLDataType
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Suppress("warnings")
|
||||||
|
open class PgpSymEncrypt2 : AbstractRoutine<ByteArray>("pgp_sym_encrypt", Public.PUBLIC, DSL.comment(""), SQLDataType.BLOB) {
|
||||||
|
companion object {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.pgp_sym_encrypt.RETURN_VALUE</code>.
|
||||||
|
*/
|
||||||
|
val RETURN_VALUE: Parameter<ByteArray?> = Internal.createParameter("RETURN_VALUE", SQLDataType.BLOB, false, false)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.pgp_sym_encrypt._1</code>.
|
||||||
|
*/
|
||||||
|
val _1: Parameter<String?> = Internal.createParameter("_1", SQLDataType.CLOB, false, true)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.pgp_sym_encrypt._2</code>.
|
||||||
|
*/
|
||||||
|
val _2: Parameter<String?> = Internal.createParameter("_2", SQLDataType.CLOB, false, true)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.pgp_sym_encrypt._3</code>.
|
||||||
|
*/
|
||||||
|
val _3: Parameter<String?> = Internal.createParameter("_3", SQLDataType.CLOB, false, true)
|
||||||
|
}
|
||||||
|
|
||||||
|
init {
|
||||||
|
returnParameter = PgpSymEncrypt2.RETURN_VALUE
|
||||||
|
addInParameter(PgpSymEncrypt2._1)
|
||||||
|
addInParameter(PgpSymEncrypt2._2)
|
||||||
|
addInParameter(PgpSymEncrypt2._3)
|
||||||
|
setOverloaded(true)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_1</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__1(value: String?): Unit = setValue(PgpSymEncrypt2._1, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_1</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__1(field: Field<String?>): Unit {
|
||||||
|
setField(PgpSymEncrypt2._1, field)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_2</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__2(value: String?): Unit = setValue(PgpSymEncrypt2._2, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_2</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__2(field: Field<String?>): Unit {
|
||||||
|
setField(PgpSymEncrypt2._2, field)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_3</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__3(value: String?): Unit = setValue(PgpSymEncrypt2._3, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_3</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__3(field: Field<String?>): Unit {
|
||||||
|
setField(PgpSymEncrypt2._3, field)
|
||||||
|
}
|
||||||
|
}
|
||||||
+72
@@ -0,0 +1,72 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package de.fiereu.openmmo.server.login.jooq.routines
|
||||||
|
|
||||||
|
|
||||||
|
import de.fiereu.openmmo.server.login.jooq.Public
|
||||||
|
|
||||||
|
import org.jooq.Field
|
||||||
|
import org.jooq.Parameter
|
||||||
|
import org.jooq.impl.AbstractRoutine
|
||||||
|
import org.jooq.impl.DSL
|
||||||
|
import org.jooq.impl.Internal
|
||||||
|
import org.jooq.impl.SQLDataType
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Suppress("warnings")
|
||||||
|
open class PgpSymEncryptBytea1 : AbstractRoutine<ByteArray>("pgp_sym_encrypt_bytea", Public.PUBLIC, DSL.comment(""), SQLDataType.BLOB) {
|
||||||
|
companion object {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.pgp_sym_encrypt_bytea.RETURN_VALUE</code>.
|
||||||
|
*/
|
||||||
|
val RETURN_VALUE: Parameter<ByteArray?> = Internal.createParameter("RETURN_VALUE", SQLDataType.BLOB, false, false)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.pgp_sym_encrypt_bytea._1</code>.
|
||||||
|
*/
|
||||||
|
val _1: Parameter<ByteArray?> = Internal.createParameter("_1", SQLDataType.BLOB, false, true)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.pgp_sym_encrypt_bytea._2</code>.
|
||||||
|
*/
|
||||||
|
val _2: Parameter<String?> = Internal.createParameter("_2", SQLDataType.CLOB, false, true)
|
||||||
|
}
|
||||||
|
|
||||||
|
init {
|
||||||
|
returnParameter = PgpSymEncryptBytea1.RETURN_VALUE
|
||||||
|
addInParameter(PgpSymEncryptBytea1._1)
|
||||||
|
addInParameter(PgpSymEncryptBytea1._2)
|
||||||
|
setOverloaded(true)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_1</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__1(value: ByteArray?): Unit = setValue(PgpSymEncryptBytea1._1, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_1</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__1(field: Field<ByteArray?>): Unit {
|
||||||
|
setField(PgpSymEncryptBytea1._1, field)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_2</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__2(value: String?): Unit = setValue(PgpSymEncryptBytea1._2, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_2</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__2(field: Field<String?>): Unit {
|
||||||
|
setField(PgpSymEncryptBytea1._2, field)
|
||||||
|
}
|
||||||
|
}
|
||||||
+91
@@ -0,0 +1,91 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package de.fiereu.openmmo.server.login.jooq.routines
|
||||||
|
|
||||||
|
|
||||||
|
import de.fiereu.openmmo.server.login.jooq.Public
|
||||||
|
|
||||||
|
import org.jooq.Field
|
||||||
|
import org.jooq.Parameter
|
||||||
|
import org.jooq.impl.AbstractRoutine
|
||||||
|
import org.jooq.impl.DSL
|
||||||
|
import org.jooq.impl.Internal
|
||||||
|
import org.jooq.impl.SQLDataType
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Suppress("warnings")
|
||||||
|
open class PgpSymEncryptBytea2 : AbstractRoutine<ByteArray>("pgp_sym_encrypt_bytea", Public.PUBLIC, DSL.comment(""), SQLDataType.BLOB) {
|
||||||
|
companion object {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.pgp_sym_encrypt_bytea.RETURN_VALUE</code>.
|
||||||
|
*/
|
||||||
|
val RETURN_VALUE: Parameter<ByteArray?> = Internal.createParameter("RETURN_VALUE", SQLDataType.BLOB, false, false)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.pgp_sym_encrypt_bytea._1</code>.
|
||||||
|
*/
|
||||||
|
val _1: Parameter<ByteArray?> = Internal.createParameter("_1", SQLDataType.BLOB, false, true)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.pgp_sym_encrypt_bytea._2</code>.
|
||||||
|
*/
|
||||||
|
val _2: Parameter<String?> = Internal.createParameter("_2", SQLDataType.CLOB, false, true)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parameter <code>public.pgp_sym_encrypt_bytea._3</code>.
|
||||||
|
*/
|
||||||
|
val _3: Parameter<String?> = Internal.createParameter("_3", SQLDataType.CLOB, false, true)
|
||||||
|
}
|
||||||
|
|
||||||
|
init {
|
||||||
|
returnParameter = PgpSymEncryptBytea2.RETURN_VALUE
|
||||||
|
addInParameter(PgpSymEncryptBytea2._1)
|
||||||
|
addInParameter(PgpSymEncryptBytea2._2)
|
||||||
|
addInParameter(PgpSymEncryptBytea2._3)
|
||||||
|
setOverloaded(true)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_1</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__1(value: ByteArray?): Unit = setValue(PgpSymEncryptBytea2._1, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_1</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__1(field: Field<ByteArray?>): Unit {
|
||||||
|
setField(PgpSymEncryptBytea2._1, field)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_2</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__2(value: String?): Unit = setValue(PgpSymEncryptBytea2._2, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_2</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__2(field: Field<String?>): Unit {
|
||||||
|
setField(PgpSymEncryptBytea2._2, field)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_3</code> parameter IN value to the routine
|
||||||
|
*/
|
||||||
|
fun set__3(value: String?): Unit = setValue(PgpSymEncryptBytea2._3, value)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the <code>_3</code> parameter to the function to be used with a
|
||||||
|
* {@link org.jooq.Select} statement
|
||||||
|
*/
|
||||||
|
fun set__3(field: Field<String?>): Unit {
|
||||||
|
setField(PgpSymEncryptBytea2._3, field)
|
||||||
|
}
|
||||||
|
}
|
||||||
+1662
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,186 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package de.fiereu.openmmo.server.login.jooq.tables
|
||||||
|
|
||||||
|
|
||||||
|
import de.fiereu.openmmo.server.login.jooq.Public
|
||||||
|
import de.fiereu.openmmo.server.login.jooq.keys.USER_PKEY
|
||||||
|
import de.fiereu.openmmo.server.login.jooq.keys.USER_USERNAME_KEY
|
||||||
|
import de.fiereu.openmmo.server.login.jooq.tables.records.UserRecord
|
||||||
|
|
||||||
|
import java.time.LocalDateTime
|
||||||
|
|
||||||
|
import kotlin.collections.Collection
|
||||||
|
import kotlin.collections.List
|
||||||
|
|
||||||
|
import org.jooq.Condition
|
||||||
|
import org.jooq.Field
|
||||||
|
import org.jooq.ForeignKey
|
||||||
|
import org.jooq.Identity
|
||||||
|
import org.jooq.InverseForeignKey
|
||||||
|
import org.jooq.Name
|
||||||
|
import org.jooq.PlainSQL
|
||||||
|
import org.jooq.QueryPart
|
||||||
|
import org.jooq.Record
|
||||||
|
import org.jooq.SQL
|
||||||
|
import org.jooq.Schema
|
||||||
|
import org.jooq.Select
|
||||||
|
import org.jooq.Stringly
|
||||||
|
import org.jooq.Table
|
||||||
|
import org.jooq.TableField
|
||||||
|
import org.jooq.TableOptions
|
||||||
|
import org.jooq.UniqueKey
|
||||||
|
import org.jooq.impl.DSL
|
||||||
|
import org.jooq.impl.SQLDataType
|
||||||
|
import org.jooq.impl.TableImpl
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Suppress("warnings")
|
||||||
|
open class User(
|
||||||
|
alias: Name,
|
||||||
|
path: Table<out Record>?,
|
||||||
|
childPath: ForeignKey<out Record, UserRecord>?,
|
||||||
|
parentPath: InverseForeignKey<out Record, UserRecord>?,
|
||||||
|
aliased: Table<UserRecord>?,
|
||||||
|
parameters: Array<Field<*>?>?,
|
||||||
|
where: Condition?
|
||||||
|
): TableImpl<UserRecord>(
|
||||||
|
alias,
|
||||||
|
Public.PUBLIC,
|
||||||
|
path,
|
||||||
|
childPath,
|
||||||
|
parentPath,
|
||||||
|
aliased,
|
||||||
|
parameters,
|
||||||
|
DSL.comment(""),
|
||||||
|
TableOptions.table(),
|
||||||
|
where,
|
||||||
|
) {
|
||||||
|
companion object {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The reference instance of <code>public.user</code>
|
||||||
|
*/
|
||||||
|
val USER: User = User()
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The class holding records for this type
|
||||||
|
*/
|
||||||
|
override fun getRecordType(): Class<UserRecord> = UserRecord::class.java
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>public.user.id</code>.
|
||||||
|
*/
|
||||||
|
val ID: TableField<UserRecord, Int?> = createField(DSL.name("id"), SQLDataType.INTEGER.nullable(false).identity(true), this, "")
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>public.user.created_at</code>.
|
||||||
|
*/
|
||||||
|
val CREATED_AT: TableField<UserRecord, LocalDateTime?> = createField(DSL.name("created_at"), SQLDataType.LOCALDATETIME(6).nullable(false).defaultValue(DSL.field(DSL.raw("CURRENT_TIMESTAMP"), SQLDataType.LOCALDATETIME)), this, "")
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>public.user.username</code>.
|
||||||
|
*/
|
||||||
|
val USERNAME: TableField<UserRecord, String?> = createField(DSL.name("username"), SQLDataType.VARCHAR(12).nullable(false), this, "")
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>public.user.password</code>.
|
||||||
|
*/
|
||||||
|
val PASSWORD: TableField<UserRecord, ByteArray?> = createField(DSL.name("password"), SQLDataType.BLOB.nullable(false), this, "")
|
||||||
|
|
||||||
|
private constructor(alias: Name, aliased: Table<UserRecord>?): this(alias, null, null, null, aliased, null, null)
|
||||||
|
private constructor(alias: Name, aliased: Table<UserRecord>?, parameters: Array<Field<*>?>?): this(alias, null, null, null, aliased, parameters, null)
|
||||||
|
private constructor(alias: Name, aliased: Table<UserRecord>?, where: Condition?): this(alias, null, null, null, aliased, null, where)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an aliased <code>public.user</code> table reference
|
||||||
|
*/
|
||||||
|
constructor(alias: String): this(DSL.name(alias))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an aliased <code>public.user</code> table reference
|
||||||
|
*/
|
||||||
|
constructor(alias: Name): this(alias, null)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a <code>public.user</code> table reference
|
||||||
|
*/
|
||||||
|
constructor(): this(DSL.name("user"), null)
|
||||||
|
override fun getSchema(): Schema? = if (aliased()) null else Public.PUBLIC
|
||||||
|
override fun getIdentity(): Identity<UserRecord, Int?> = super.getIdentity() as Identity<UserRecord, Int?>
|
||||||
|
override fun getPrimaryKey(): UniqueKey<UserRecord> = USER_PKEY
|
||||||
|
override fun getUniqueKeys(): List<UniqueKey<UserRecord>> = listOf(USER_USERNAME_KEY)
|
||||||
|
override fun `as`(alias: String): User = User(DSL.name(alias), this)
|
||||||
|
override fun `as`(alias: Name): User = User(alias, this)
|
||||||
|
override fun `as`(alias: Table<*>): User = User(alias.qualifiedName, this)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Rename this table
|
||||||
|
*/
|
||||||
|
override fun rename(name: String): User = User(DSL.name(name), null)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Rename this table
|
||||||
|
*/
|
||||||
|
override fun rename(name: Name): User = User(name, null)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Rename this table
|
||||||
|
*/
|
||||||
|
override fun rename(name: Table<*>): User = User(name.qualifiedName, null)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
override fun where(condition: Condition?): User = User(qualifiedName, if (aliased()) this else null, condition)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
override fun where(conditions: Collection<Condition>): User = where(DSL.and(conditions))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
override fun where(vararg conditions: Condition?): User = where(DSL.and(*conditions))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
override fun where(condition: Field<Boolean?>?): User = where(DSL.condition(condition))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
@PlainSQL override fun where(condition: SQL): User = where(DSL.condition(condition))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
@PlainSQL override fun where(@Stringly.SQL condition: String): User = where(DSL.condition(condition))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
@PlainSQL override fun where(@Stringly.SQL condition: String, vararg binds: Any?): User = where(DSL.condition(condition, *binds))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
@PlainSQL override fun where(@Stringly.SQL condition: String, vararg parts: QueryPart): User = where(DSL.condition(condition, *parts))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
override fun whereExists(select: Select<*>): User = where(DSL.exists(select))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an inline derived table from this table
|
||||||
|
*/
|
||||||
|
override fun whereNotExists(select: Select<*>): User = where(DSL.notExists(select))
|
||||||
|
}
|
||||||
+53
@@ -0,0 +1,53 @@
|
|||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package de.fiereu.openmmo.server.login.jooq.tables.records
|
||||||
|
|
||||||
|
|
||||||
|
import de.fiereu.openmmo.server.login.jooq.tables.User
|
||||||
|
|
||||||
|
import java.time.LocalDateTime
|
||||||
|
|
||||||
|
import org.jooq.Record1
|
||||||
|
import org.jooq.impl.UpdatableRecordImpl
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
@Suppress("warnings")
|
||||||
|
open class UserRecord() : UpdatableRecordImpl<UserRecord>(User.USER) {
|
||||||
|
|
||||||
|
open var id: Int?
|
||||||
|
set(value): Unit = set(0, value)
|
||||||
|
get(): Int? = get(0) as Int?
|
||||||
|
|
||||||
|
open var createdAt: LocalDateTime?
|
||||||
|
set(value): Unit = set(1, value)
|
||||||
|
get(): LocalDateTime? = get(1) as LocalDateTime?
|
||||||
|
|
||||||
|
open var username: String?
|
||||||
|
set(value): Unit = set(2, value)
|
||||||
|
get(): String? = get(2) as String?
|
||||||
|
|
||||||
|
open var password: ByteArray?
|
||||||
|
set(value): Unit = set(3, value)
|
||||||
|
get(): ByteArray? = get(3) as ByteArray?
|
||||||
|
|
||||||
|
// -------------------------------------------------------------------------
|
||||||
|
// Primary key information
|
||||||
|
// -------------------------------------------------------------------------
|
||||||
|
|
||||||
|
override fun key(): Record1<Int?> = super.key() as Record1<Int?>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a detached, initialised UserRecord
|
||||||
|
*/
|
||||||
|
constructor(id: Int? = null, createdAt: LocalDateTime? = null, username: String? = null, password: ByteArray? = null): this() {
|
||||||
|
this.id = id
|
||||||
|
this.createdAt = createdAt
|
||||||
|
this.username = username
|
||||||
|
this.password = password
|
||||||
|
resetTouchedOnNotNull()
|
||||||
|
}
|
||||||
|
}
|
||||||
+15
@@ -0,0 +1,15 @@
|
|||||||
|
@file:Suppress("warnings")
|
||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package de.fiereu.openmmo.server.login.jooq.tables.references
|
||||||
|
|
||||||
|
|
||||||
|
import de.fiereu.openmmo.server.login.jooq.tables.User
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The table <code>public.user</code>.
|
||||||
|
*/
|
||||||
|
val USER: User = User.USER
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
package de.fiereu.openmmo.server.login
|
||||||
|
|
||||||
|
import de.fiereu.openmmo.protocols.tls.LoginServerProtocol
|
||||||
|
import de.fiereu.openmmo.server.ServerBuilder
|
||||||
|
import de.fiereu.openmmo.server.config.ServerConfig
|
||||||
|
import de.fiereu.openmmo.server.config.TlsConfig
|
||||||
|
import de.fiereu.openmmo.server.io.resource
|
||||||
|
import de.fiereu.openmmo.server.keys.KeyLoader
|
||||||
|
import de.fiereu.openmmo.server.login.protocol.login.LoginProtocolHandler
|
||||||
|
import kotlinx.coroutines.CoroutineScope
|
||||||
|
import kotlinx.coroutines.Dispatchers
|
||||||
|
import kotlinx.coroutines.SupervisorJob
|
||||||
|
|
||||||
|
fun main() {
|
||||||
|
val serverConfig = ServerConfig(
|
||||||
|
port = 2106
|
||||||
|
)
|
||||||
|
val tlsConfig = TlsConfig(
|
||||||
|
checksumSize = 16
|
||||||
|
)
|
||||||
|
val coroutineScope = CoroutineScope(SupervisorJob() + Dispatchers.Default)
|
||||||
|
val server = ServerBuilder.create()
|
||||||
|
.withCoroutineScope(coroutineScope)
|
||||||
|
.withConfig(serverConfig)
|
||||||
|
.withTlsConfig(tlsConfig)
|
||||||
|
.withPublicKey(KeyLoader.loadPemECPublicKey(resource("game.public.pem")))
|
||||||
|
.withPrivateKey(KeyLoader.loadPemECPrivateKey(resource("game.private.pem")))
|
||||||
|
.withChannelHandlerProvider { LoginProtocolHandler(LoginServerProtocol(), coroutineScope) }
|
||||||
|
.build()
|
||||||
|
server.start()
|
||||||
|
}
|
||||||
+36
@@ -0,0 +1,36 @@
|
|||||||
|
package de.fiereu.openmmo.server.login.protocol.login
|
||||||
|
|
||||||
|
import de.fiereu.openmmo.protocols.Protocol
|
||||||
|
import de.fiereu.openmmo.protocols.tls.packets.LoginRequestPacket
|
||||||
|
import de.fiereu.openmmo.server.netty.handlers.ProtocolHandler
|
||||||
|
import de.fiereu.openmmo.server.protocol.PacketEvent
|
||||||
|
import io.github.oshai.kotlinlogging.KotlinLogging
|
||||||
|
import io.netty.channel.ChannelHandlerContext
|
||||||
|
import kotlinx.coroutines.CoroutineScope
|
||||||
|
import kotlinx.coroutines.launch
|
||||||
|
|
||||||
|
private val log = KotlinLogging.logger {}
|
||||||
|
|
||||||
|
class LoginProtocolHandler(
|
||||||
|
protocol: Protocol,
|
||||||
|
private val coroutineScope: CoroutineScope,
|
||||||
|
) : ProtocolHandler(protocol) {
|
||||||
|
|
||||||
|
override fun onActive(ctx: ChannelHandlerContext) {
|
||||||
|
log.info { "Client ${ctx.channel().remoteAddress()} swapped to login protocol." }
|
||||||
|
}
|
||||||
|
|
||||||
|
@Suppress("unchecked_cast") // Every cast is personally checked and signed off by me AT RUNTIME :P
|
||||||
|
override fun onPacketReceived(event: PacketEvent<*>) {
|
||||||
|
coroutineScope.launch {
|
||||||
|
when (event.packet) {
|
||||||
|
is LoginRequestPacket -> onLoginRequest(event as PacketEvent<LoginRequestPacket>)
|
||||||
|
else -> log.warn { "Unhandled login packet type: ${event.packet::class.simpleName}" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
fun onLoginRequest(event: PacketEvent<LoginRequestPacket>) {
|
||||||
|
log.info { "Received login request for user '${event.packet.username}'" }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
server.port = 2106
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
create extension if not exists pgcrypto;
|
||||||
|
|
||||||
|
create table
|
||||||
|
"user"
|
||||||
|
(
|
||||||
|
id serial not null,
|
||||||
|
created_at timestamp not null default current_timestamp,
|
||||||
|
username varchar(12) not null unique, -- SHA-1 hash of the password
|
||||||
|
password bytea not null,
|
||||||
|
primary key (id)
|
||||||
|
);
|
||||||
|
|
||||||
|
insert into "user"(username, password)
|
||||||
|
select 'admin',
|
||||||
|
digest('admin', 'sha1')
|
||||||
|
where not exists(select 1
|
||||||
|
from "user");
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
<configuration>
|
||||||
|
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
|
||||||
|
<encoder>
|
||||||
|
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
|
||||||
|
</encoder>
|
||||||
|
</appender>
|
||||||
|
|
||||||
|
<root level="TRACE">
|
||||||
|
<appender-ref ref="STDOUT" />
|
||||||
|
</root>
|
||||||
|
</configuration>
|
||||||
@@ -0,0 +1,63 @@
|
|||||||
|
# Server Module
|
||||||
|
|
||||||
|
The server module provides the core server framework for OpenMMO using Netty for networking and protocol handling.
|
||||||
|
|
||||||
|
## Contents
|
||||||
|
|
||||||
|
### Core Classes
|
||||||
|
- **Server**: Main server class with lifecycle management (start/stop)
|
||||||
|
- **ServerBuilder**: Builder pattern for server configuration and setup
|
||||||
|
- **NettyServer**: Netty-based server implementation for async I/O
|
||||||
|
|
||||||
|
### Configuration
|
||||||
|
- **ServerConfig**: Main server configuration settings
|
||||||
|
- **TlsConfig**: TLS-specific configuration for secure communication
|
||||||
|
- **ConfigLoader**: Configuration loading utilities
|
||||||
|
|
||||||
|
### Networking Components
|
||||||
|
- **ChannelHandlerProvider**: Interface for providing Netty channel handlers
|
||||||
|
- **DefaultChannelHandlerProvider**: Default implementation of channel handler provider
|
||||||
|
|
||||||
|
### Netty Handlers
|
||||||
|
- **ProtocolHandler**: Main protocol routing and packet handling
|
||||||
|
- **PacketFrameDecoder/Encoder**: Packet framing with length prefixing
|
||||||
|
- **ChecksumFrameDecoder/Encoder**: Packet integrity validation (CRC16 and HMAC-SHA256)
|
||||||
|
- **TlsDecryptionHandler/TlsEncryptionHandler**: TLS-like encryption/decryption
|
||||||
|
|
||||||
|
### Protocol System
|
||||||
|
- **TlsContext**: TLS session context management
|
||||||
|
- **TlsProtocolHandler**: TLS protocol implementation
|
||||||
|
- **PacketEvent**: Event system for packet processing
|
||||||
|
|
||||||
|
### Cryptography
|
||||||
|
- **KeyLoader**: Utility for loading ECDSA keys from PEM files
|
||||||
|
- **Checksum**: Abstraction for packet integrity validation
|
||||||
|
- **Crc16Checksum**: CRC16 implementation
|
||||||
|
- **HmacSha256Checksum**: HMAC-SHA256 implementation
|
||||||
|
|
||||||
|
### Dependency Injection
|
||||||
|
- **ServerComponent**: Dagger component for dependency injection
|
||||||
|
- **ServerModule**: Dagger module providing server dependencies
|
||||||
|
|
||||||
|
## Features
|
||||||
|
- Asynchronous networking using Netty
|
||||||
|
- Custom TLS-like protocol for secure communication
|
||||||
|
- Packet framing and integrity validation
|
||||||
|
- Protocol switching (TLS handshake → application protocols)
|
||||||
|
- ECDSA key management for packet signing/verification
|
||||||
|
- Configurable coroutine scopes for async operations
|
||||||
|
|
||||||
|
## Dependencies
|
||||||
|
- Netty for networking
|
||||||
|
- Dagger 2 for dependency injection
|
||||||
|
- BouncyCastle for cryptography
|
||||||
|
- Kotlinx.coroutines for async operations
|
||||||
|
- Kotlinx.serialization for configuration
|
||||||
|
- TypeSafe Config for configuration management
|
||||||
|
- Protocol and Protocol.TLS modules
|
||||||
|
|
||||||
|
## Testing
|
||||||
|
- Comprehensive unit tests using Kotest
|
||||||
|
- Integration tests for Netty pipeline components
|
||||||
|
- TLS handler tests with helper utilities
|
||||||
|
- MockK for mocking dependencies
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
plugins {
|
||||||
|
`java-library`
|
||||||
|
id("buildsrc.convention.kotlin-jvm")
|
||||||
|
alias(libs.plugins.kotlin.serialization)
|
||||||
|
alias(libs.plugins.ksp)
|
||||||
|
}
|
||||||
|
|
||||||
|
group = "de.fiereu.openmmo"
|
||||||
|
|
||||||
|
version = "0.1.0"
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
api(libs.typesafe.config)
|
||||||
|
api(libs.slf4j)
|
||||||
|
api(libs.kotlin.logging)
|
||||||
|
api(libs.kotlinx.serialization.core)
|
||||||
|
api(libs.kotlinx.coroutines)
|
||||||
|
api(libs.dagger)
|
||||||
|
api(project(":protocol"))
|
||||||
|
api(project(":protocol.tls"))
|
||||||
|
|
||||||
|
ksp(libs.dagger.compiler)
|
||||||
|
|
||||||
|
implementation(libs.kotlin.reflect)
|
||||||
|
implementation(libs.netty)
|
||||||
|
implementation(libs.kotlinx.serialization.json)
|
||||||
|
implementation(libs.bundles.crypto)
|
||||||
|
|
||||||
|
testImplementation(libs.bundles.kotest)
|
||||||
|
testImplementation(libs.kotlinx.coroutines.test)
|
||||||
|
testImplementation(libs.mockk)
|
||||||
|
}
|
||||||
@@ -0,0 +1,54 @@
|
|||||||
|
package de.fiereu.openmmo.server
|
||||||
|
|
||||||
|
import de.fiereu.openmmo.server.netty.NettyServer
|
||||||
|
import io.github.oshai.kotlinlogging.KotlinLogging
|
||||||
|
import javax.inject.Inject
|
||||||
|
import javax.inject.Singleton
|
||||||
|
|
||||||
|
private val log = KotlinLogging.logger {}
|
||||||
|
|
||||||
|
@Singleton
|
||||||
|
class Server @Inject constructor(
|
||||||
|
private val nettyServer: NettyServer
|
||||||
|
) {
|
||||||
|
@Volatile
|
||||||
|
private var isStarted = false
|
||||||
|
val isRunning: Boolean
|
||||||
|
get() = isStarted && nettyServer.isRunning
|
||||||
|
|
||||||
|
fun start() {
|
||||||
|
if (isStarted) {
|
||||||
|
log.warn { "Server is already started" }
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
log.info { "Starting server..." }
|
||||||
|
|
||||||
|
try {
|
||||||
|
nettyServer.start()
|
||||||
|
isStarted = true
|
||||||
|
log.info { "Server started successfully" }
|
||||||
|
} catch (e: Exception) {
|
||||||
|
log.error(e) { "Failed to start server" }
|
||||||
|
throw e
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
fun stop() {
|
||||||
|
if (!isStarted) {
|
||||||
|
log.warn { "Server is not started" }
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
log.info { "Stopping server..." }
|
||||||
|
|
||||||
|
try {
|
||||||
|
nettyServer.stop()
|
||||||
|
isStarted = false
|
||||||
|
log.info { "Server stopped successfully" }
|
||||||
|
} catch (e: Exception) {
|
||||||
|
log.error(e) { "Error during server shutdown" }
|
||||||
|
throw e
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Loaded 100 of 131 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user