You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+82-3Lines changed: 82 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,9 +4,88 @@ English | [Chinese](README-zh.md)
4
4
## Supporting environment ##
5
5
>**Note:** At present, the project has not completed the compatibility test, and this compatibility data is only for reference.
6
6
- Base:
7
-
- Java: 1.8 or Upper
7
+
- Java: 1.8.0 or Upper
8
+
- Encrypt:
9
+
- Java: 1.8.0_161 or Upper (Or install JCE.policy on Java to lift restrictions on AES256 and above)
10
+
- Event:
11
+
- Java: 1.8.0 or Upper
8
12
9
-
## Introduce ##
10
-
### ###
13
+
## Introduction ##
14
+
### The purpose of this project ###
15
+
The purpose of this project is to summarize all the frequently used in Java development in one library, to avoid the situation of "the same function has been developed many times in different projects".
11
16
17
+
## Utils ##
18
+
### base ###
19
+
Package path: `net.lamgc.utils.base`
20
+
Introduction: Basic tools.
12
21
22
+
-`ArgumentsProperties` - Used to parse the parameter list to generate parameter key-value pairs, which can quickly find parameters.
23
+
24
+
### encrypt ###
25
+
Package path: `net.lamgc.utils.encrypt`
26
+
Introduction: Encrypt Utilscontains encryption-related tools such as AES encryption and decryption, RSA encryption and decryption, and signatures. All tool classes are developed based on Java's own encryption suite.
27
+
28
+
-`AESEncrypt` - AES encryption and decryption related classes.
-`RSAEncrypt` - RSA encryption and decryption tool class.
51
+
-`RSAEncryptWithAES` - Data encryption and decryption tool class combining RSA and AES.
52
+
-`RSASign` - RSA signature tool class.
53
+
- Supported signature algorithms:
54
+
- MD2
55
+
- MD5
56
+
- SHA-1
57
+
- SHA-224
58
+
- SHA-256
59
+
- SHA-384
60
+
- SHA-512
61
+
### event ###
62
+
Package path: `net.lamgc.utils.event`
63
+
Introduction: Event Utils is a simple, general-purpose event system that can quickly add flexible event functions to a project.The event system is similar to the event system of the Bukkit API.
-`EventExecutor` - Event executor, used to post events to event methods.
67
+
-`EventHandler` - An empty interface required to implement an event handler, used to identify that a class contains event methods.
68
+
-`EventObject` - An empty interface required to implement events, used to identify a class as an event object, and passed to the event method as parameters.
69
+
-`EventHandlerList` - List interface for storing event methods, which can be implemented to change the storage method.
70
+
-`EventHandlerObjectMap` - Map interface that stores EventHandler objects.
71
+
-`EventInvokeException` - It is used to wrap the information thrown by the event method, and it is handed over to the EventUncaughtExceptionHandler.
72
+
-`EventUncaughtExceptionHandler` - An exception handling interface for handling event method exceptions.
73
+
-`HashHandlerObjectMap` - Built-in default EventHandlerObjectMap, implemented by HashMap.
74
+
75
+
## LICENSE ##
76
+
This project complies with the `Apache 2` license
77
+
```
78
+
Copyright 2019 LamGC
79
+
80
+
Licensed under the Apache License, Version 2.0 (the "License");
81
+
You must not use the project and the files in the project except in compliance with the License.
82
+
You may obtain a copy of the License at
83
+
84
+
http://www.apache.org/licenses/LICENSE-2.0
85
+
86
+
Unless required by applicable law or agreed to in writing, software
87
+
distributed under the License is distributed on an "AS IS" BASIS,
88
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
89
+
See the License for the specific language governing permissions and
0 commit comments