Skip to content

Commit b628adb

Browse files
authored
Merge pull request eugenp#11448 from freelansam/JAVA-8282
JAVA-8282: Split or move core-java-security-2 module
2 parents b5507c2 + fc6c46b commit b628adb

File tree

11 files changed

+65
-6
lines changed

11 files changed

+65
-6
lines changed

core-java-modules/core-java-security-2/README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,7 @@ This module contains articles about core Java Security
1010
- [SHA-256 and SHA3-256 Hashing in Java](https://www.baeldung.com/sha-256-hashing-java)
1111
- [Checksums in Java](https://www.baeldung.com/java-checksums)
1212
- [How to Read PEM File to Get Public and Private Keys](https://www.baeldung.com/java-read-pem-file-keys)
13-
- [Listing the Available Cipher Algorithms](https://www.baeldung.com/java-list-cipher-algorithms)
1413
- [Get a List of Trusted Certificates in Java](https://www.baeldung.com/java-list-trusted-certificates)
1514
- [Security Context Basics: User, Subject and Principal](https://www.baeldung.com/security-context-basics)
16-
- [Java AES Encryption and Decryption](https://www.baeldung.com/java-aes-encryption-decryption)
17-
- [InvalidAlgorithmParameterException: Wrong IV Length](https://www.baeldung.com/java-invalidalgorithmparameter-exception)
1815
- [The java.security.egd JVM Option](https://www.baeldung.com/java-security-egd)
19-
- [RSA in Java](https://www.baeldung.com/java-rsa)
20-
- [3DES in Java](https://www.baeldung.com/java-3des)
2116
- More articles: [[<-- prev]](/core-java-modules/core-java-security)
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
## Core Java Security Algorithms
2+
3+
This module contains articles about core Java Security Algorithms such as AES, DES, RSA, etc
4+
5+
### Relevant Articles:
6+
7+
- [Listing the Available Cipher Algorithms](https://www.baeldung.com/java-list-cipher-algorithms)
8+
- [Java AES Encryption and Decryption](https://www.baeldung.com/java-aes-encryption-decryption)
9+
- [InvalidAlgorithmParameterException: Wrong IV Length](https://www.baeldung.com/java-invalidalgorithmparameter-exception)
10+
- [RSA in Java](https://www.baeldung.com/java-rsa)
11+
- [3DES in Java](https://www.baeldung.com/java-3des)
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
<artifactId>core-java-security-algorithms</artifactId>
7+
<version>0.1.0-SNAPSHOT</version>
8+
<name>core-java-security-algorithms</name>
9+
<packaging>jar</packaging>
10+
11+
<parent>
12+
<groupId>com.baeldung.core-java-modules</groupId>
13+
<artifactId>core-java-modules</artifactId>
14+
<version>0.0.1-SNAPSHOT</version>
15+
</parent>
16+
17+
<dependencies>
18+
<dependency>
19+
<groupId>commons-codec</groupId>
20+
<artifactId>commons-codec</artifactId>
21+
<version>${commons-codec.version}</version>
22+
</dependency>
23+
<dependency>
24+
<groupId>org.bouncycastle</groupId>
25+
<artifactId>bcprov-jdk15on</artifactId>
26+
<version>${bouncycastle.version}</version>
27+
</dependency>
28+
<!-- test scoped -->
29+
<dependency>
30+
<groupId>org.assertj</groupId>
31+
<artifactId>assertj-core</artifactId>
32+
<version>${assertj-core.version}</version>
33+
<scope>test</scope>
34+
</dependency>
35+
<!-- https://mvnrepository.com/artifact/javax.xml.bind/jaxb-api -->
36+
<dependency>
37+
<groupId>javax.xml.bind</groupId>
38+
<artifactId>jaxb-api</artifactId>
39+
<version>${jaxb-api.version}</version>
40+
</dependency>
41+
</dependencies>
42+
43+
<properties>
44+
<!-- util -->
45+
<bouncycastle.version>1.60</bouncycastle.version>
46+
<commons-codec.version>1.11</commons-codec.version>
47+
<!-- testing -->
48+
<assertj-core.version>3.18.0</assertj-core.version>
49+
<jaxb-api.version>2.3.1</jaxb-api.version>
50+
</properties>
51+
52+
</project>

core-java-modules/core-java-security-2/src/main/java/com/baeldung/aes/AESUtil.java renamed to core-java-modules/core-java-security-algorithms/src/main/java/com/baeldung/aes/AESUtil.java

File renamed without changes.

core-java-modules/core-java-security-2/src/main/java/com/baeldung/aes/Student.java renamed to core-java-modules/core-java-security-algorithms/src/main/java/com/baeldung/aes/Student.java

File renamed without changes.

core-java-modules/core-java-security-2/src/test/java/com/baeldung/aes/AESUtilUnitTest.java renamed to core-java-modules/core-java-security-algorithms/src/test/java/com/baeldung/aes/AESUtilUnitTest.java

File renamed without changes.

core-java-modules/core-java-security-2/src/test/java/com/baeldung/cipher/AvailableCiphersUnitTest.java renamed to core-java-modules/core-java-security-algorithms/src/test/java/com/baeldung/cipher/AvailableCiphersUnitTest.java

File renamed without changes.

core-java-modules/core-java-security-2/src/test/java/com/baeldung/des/TripleDESUnitTest.java renamed to core-java-modules/core-java-security-algorithms/src/test/java/com/baeldung/des/TripleDESUnitTest.java

File renamed without changes.

core-java-modules/core-java-security-2/src/test/java/com/baeldung/rsa/RsaUnitTest.java renamed to core-java-modules/core-java-security-algorithms/src/test/java/com/baeldung/rsa/RsaUnitTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.baeldung.cipher;
1+
package com.baeldung.rsa;
22

33
import org.junit.jupiter.api.Assertions;
44
import org.junit.jupiter.api.Test;

core-java-modules/core-java-security-2/src/test/resources/baeldung.txt renamed to core-java-modules/core-java-security-algorithms/src/test/resources/baeldung.txt

File renamed without changes.

0 commit comments

Comments
 (0)