Skip to content

Commit b4ff5c4

Browse files
committed
[BAEL-11402] - Moved articles out of core-java (part 3)
1 parent 99774f8 commit b4ff5c4

File tree

32 files changed

+103
-37
lines changed

32 files changed

+103
-37
lines changed

core-java-io/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,5 @@
3535
- [Guide to Java OutputStream](https://www.baeldung.com/java-outputstream)
3636
- [Reading a CSV File into an Array](https://www.baeldung.com/java-csv-file-array)
3737
- [Guide to BufferedReader](https://www.baeldung.com/java-buffered-reader)
38+
- [How to Get the File Extension of a File in Java](http://www.baeldung.com/java-file-extension)
39+
- [Getting a File’s Mime Type in Java](http://www.baeldung.com/java-file-mime-type)

core-java-io/pom.xml

+14
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,17 @@
160160
<version>${opencsv.version}</version>
161161
<scope>test</scope>
162162
</dependency>
163+
<!-- Mime Type Resolution Libraries -->
164+
<dependency>
165+
<groupId>org.apache.tika</groupId>
166+
<artifactId>tika-core</artifactId>
167+
<version>${tika.version}</version>
168+
</dependency>
169+
<dependency>
170+
<groupId>net.sf.jmimemagic</groupId>
171+
<artifactId>jmimemagic</artifactId>
172+
<version>${jmime-magic.version}</version>
173+
</dependency>
163174
</dependencies>
164175

165176
<build>
@@ -264,6 +275,9 @@
264275
<esapi.version>2.1.0.1</esapi.version>
265276
<jmh-generator-annprocess.version>1.19</jmh-generator-annprocess.version>
266277
<async-http-client.version>2.4.5</async-http-client.version>
278+
<!-- Mime Type Libraries -->
279+
<tika.version>1.18</tika.version>
280+
<jmime-magic.version>0.1.5</jmime-magic.version>
267281
</properties>
268282

269283
</project>

core-java-security/README.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
## Core Java Security
2+
3+
### Relevant Articles:
4+
- [MD5 Hashing in Java](http://www.baeldung.com/java-md5)
5+
- [Guide to the Cipher Class](http://www.baeldung.com/java-cipher-class)
6+
- [Introduction to SSL in Java](http://www.baeldung.com/java-ssl)
7+
- [Java KeyStore API](http://www.baeldung.com/java-keystore)
8+
- [Encrypting and Decrypting Files in Java](http://www.baeldung.com/java-cipher-input-output-stream)
9+
- [Hashing a Password in Java](https://www.baeldung.com/java-password-hashing)
10+
- [SSL Handshake Failures](https://www.baeldung.com/java-ssl-handshake-failures)
11+
- [SHA-256 Hashing in Java](https://www.baeldung.com/sha-256-hashing-java)

core-java-security/pom.xml

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
<groupId>com.baeldung</groupId>
5+
<artifactId>core-java-security</artifactId>
6+
<version>0.1.0-SNAPSHOT</version>
7+
<packaging>jar</packaging>
8+
<name>core-java-security</name>
9+
10+
<parent>
11+
<groupId>com.baeldung</groupId>
12+
<artifactId>parent-java</artifactId>
13+
<version>0.0.1-SNAPSHOT</version>
14+
<relativePath>../parent-java</relativePath>
15+
</parent>
16+
17+
<dependencies>
18+
<dependency>
19+
<groupId>org.apache.commons</groupId>
20+
<artifactId>commons-lang3</artifactId>
21+
<version>${commons-lang3.version}</version>
22+
</dependency>
23+
<!-- test scoped -->
24+
<dependency>
25+
<groupId>org.assertj</groupId>
26+
<artifactId>assertj-core</artifactId>
27+
<version>${assertj-core.version}</version>
28+
<scope>test</scope>
29+
</dependency>
30+
31+
<dependency>
32+
<groupId>commons-codec</groupId>
33+
<artifactId>commons-codec</artifactId>
34+
<version>${commons-codec.version}</version>
35+
</dependency>
36+
<dependency>
37+
<groupId>org.bouncycastle</groupId>
38+
<artifactId>bcprov-jdk15on</artifactId>
39+
<version>${bouncycastle.version}</version>
40+
</dependency>
41+
</dependencies>
42+
43+
<properties>
44+
45+
<!-- util -->
46+
<commons-lang3.version>3.8.1</commons-lang3.version>
47+
<bouncycastle.version>1.55</bouncycastle.version>
48+
<commons-codec.version>1.10</commons-codec.version>
49+
50+
<!-- testing -->
51+
<assertj-core.version>3.10.0</assertj-core.version>
52+
53+
</properties>
54+
55+
</project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<configuration>
3+
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
4+
<encoder>
5+
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n
6+
</pattern>
7+
</encoder>
8+
</appender>
9+
10+
<logger name="org.springframework" level="WARN" />
11+
<logger name="org.springframework.transaction" level="WARN" />
12+
13+
<!-- in order to debug some marshalling issues, this needs to be TRACE -->
14+
<logger name="org.springframework.web.servlet.mvc" level="WARN" />
15+
16+
<root level="INFO">
17+
<appender-ref ref="STDOUT" />
18+
</root>
19+
</configuration>

core-java/README.md

-9
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
### Relevant Articles:
66
- [Java Timer](http://www.baeldung.com/java-timer-and-timertask)
77
- [How to Run a Shell Command in Java](http://www.baeldung.com/run-shell-command-in-java)
8-
- [MD5 Hashing in Java](http://www.baeldung.com/java-md5)
98
- [How to Print Screen in Java](http://www.baeldung.com/print-screen-in-java)
109
- [A Guide To Java Regular Expressions API](http://www.baeldung.com/regular-expressions-java)
1110
- [Getting Started with Java Properties](http://www.baeldung.com/java-properties)
@@ -24,7 +23,6 @@
2423
- [Creating a Java Compiler Plugin](http://www.baeldung.com/java-build-compiler-plugin)
2524
- [Quick Guide to Java Stack](http://www.baeldung.com/java-stack)
2625
- [Guide to java.util.Formatter](http://www.baeldung.com/java-string-formatter)
27-
- [Guide to the Cipher Class](http://www.baeldung.com/java-cipher-class)
2826
- [Compiling Java *.class Files with javac](http://www.baeldung.com/javac)
2927
- [A Guide to Iterator in Java](http://www.baeldung.com/java-iterator)
3028
- [Introduction to Javadoc](http://www.baeldung.com/javadoc)
@@ -35,27 +33,20 @@
3533
- [What is the serialVersionUID?](http://www.baeldung.com/java-serial-version-uid)
3634
- [A Guide to the ResourceBundle](http://www.baeldung.com/java-resourcebundle)
3735
- [Class Loaders in Java](http://www.baeldung.com/java-classloaders)
38-
- [Introduction to SSL in Java](http://www.baeldung.com/java-ssl)
39-
- [Java KeyStore API](http://www.baeldung.com/java-keystore)
4036
- [Double-Checked Locking with Singleton](http://www.baeldung.com/java-singleton-double-checked-locking)
4137
- [Guide to Java Clock Class](http://www.baeldung.com/java-clock)
4238
- [Importance of Main Manifest Attribute in a Self-Executing JAR](http://www.baeldung.com/java-jar-executable-manifest-main-class)
43-
- [How to Get the File Extension of a File in Java](http://www.baeldung.com/java-file-extension)
4439
- [Java Global Exception Handler](http://www.baeldung.com/java-global-exception-handler)
45-
- [Encrypting and Decrypting Files in Java](http://www.baeldung.com/java-cipher-input-output-stream)
4640
- [How to Get the Size of an Object in Java](http://www.baeldung.com/java-size-of-object)
4741
- [Guide to Java Instrumentation](http://www.baeldung.com/java-instrumentation)
48-
- [Getting a File’s Mime Type in Java](http://www.baeldung.com/java-file-mime-type)
4942
- [Common Java Exceptions](http://www.baeldung.com/java-common-exceptions)
5043
- [Throw Exception in Optional in Java 8](https://www.baeldung.com/java-optional-throw-exception)
5144
- [Add a Character to a String at a Given Position](https://www.baeldung.com/java-add-character-to-string)
5245
- [Calculating the nth Root in Java](https://www.baeldung.com/java-nth-root)
5346
- [Convert Double to String, Removing Decimal Places](https://www.baeldung.com/java-double-to-string)
5447
- [ZoneOffset in Java](https://www.baeldung.com/java-zone-offset)
55-
- [Hashing a Password in Java](https://www.baeldung.com/java-password-hashing)
5648
- [Merging java.util.Properties Objects](https://www.baeldung.com/java-merging-properties)
5749
- [A Guide to SimpleDateFormat](https://www.baeldung.com/java-simple-date-format)
58-
- [SSL Handshake Failures](https://www.baeldung.com/java-ssl-handshake-failures)
5950
- [Changing the Order in a Sum Operation Can Produce Different Results?](https://www.baeldung.com/java-floating-point-sum-order)
6051
- [Java – Try with Resources](https://www.baeldung.com/java-try-with-resources)
6152
- [Abstract Classes in Java](https://www.baeldung.com/java-abstract-class)

core-java/pom.xml

-27
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,6 @@
2424
<artifactId>commons-lang3</artifactId>
2525
<version>${commons-lang3.version}</version>
2626
</dependency>
27-
<dependency>
28-
<groupId>org.bouncycastle</groupId>
29-
<artifactId>bcprov-jdk15on</artifactId>
30-
<version>${bouncycastle.version}</version>
31-
</dependency>
3227
<dependency>
3328
<groupId>org.unix4j</groupId>
3429
<artifactId>unix4j-command</artifactId>
@@ -75,12 +70,6 @@
7570
<version>${assertj-core.version}</version>
7671
<scope>test</scope>
7772
</dependency>
78-
79-
<dependency>
80-
<groupId>commons-codec</groupId>
81-
<artifactId>commons-codec</artifactId>
82-
<version>${commons-codec.version}</version>
83-
</dependency>
8473
<dependency>
8574
<groupId>org.javamoney</groupId>
8675
<artifactId>moneta</artifactId>
@@ -126,17 +115,6 @@
126115
<artifactId>h2</artifactId>
127116
<version>${h2database.version}</version>
128117
</dependency>
129-
<!-- Mime Type Resolution Libraries -->
130-
<dependency>
131-
<groupId>org.apache.tika</groupId>
132-
<artifactId>tika-core</artifactId>
133-
<version>${tika.version}</version>
134-
</dependency>
135-
<dependency>
136-
<groupId>net.sf.jmimemagic</groupId>
137-
<artifactId>jmimemagic</artifactId>
138-
<version>${jmime-magic.version}</version>
139-
</dependency>
140118
<!-- instrumentation -->
141119
<dependency>
142120
<groupId>org.javassist</groupId>
@@ -477,8 +455,6 @@
477455

478456
<!-- util -->
479457
<commons-lang3.version>3.5</commons-lang3.version>
480-
<bouncycastle.version>1.55</bouncycastle.version>
481-
<commons-codec.version>1.10</commons-codec.version>
482458
<commons-io.version>2.5</commons-io.version>
483459
<commons-math3.version>3.6.1</commons-math3.version>
484460
<decimal4j.version>1.0.3</decimal4j.version>
@@ -509,9 +485,6 @@
509485
<spring-boot-maven-plugin.version>2.0.3.RELEASE</spring-boot-maven-plugin.version>
510486
<exec-maven-plugin.version>1.6.0</exec-maven-plugin.version>
511487
<icu4j.version>61.1</icu4j.version>
512-
<!-- Mime Type Libraries -->
513-
<tika.version>1.18</tika.version>
514-
<jmime-magic.version>0.1.5</jmime-magic.version>
515488
<!-- instrumentation -->
516489
<javaassist.version>3.21.0-GA</javaassist.version>
517490

guava/README.md

-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,3 @@
1818
- [Hamcrest Text Matchers](http://www.baeldung.com/hamcrest-text-matchers)
1919
- [Quick Guide to the Guava RateLimiter](http://www.baeldung.com/guava-rate-limiter)
2020
- [Hamcrest File Matchers](https://www.baeldung.com/hamcrest-file-matchers)
21-
- [SHA-256 Hashing in Java](https://www.baeldung.com/sha-256-hashing-java)

pom.xml

+2
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,7 @@
383383
<module>core-java-concurrency-basic</module>
384384
<module>core-java-concurrency-collections</module>
385385
<module>core-java-io</module>
386+
<module>core-java-security</module>
386387
<module>core-java-lang-syntax</module>
387388
<module>core-java-lang</module>
388389
<module>core-java-lang-oop</module>
@@ -1095,6 +1096,7 @@
10951096
<module>core-java-concurrency-basic</module>
10961097
<module>core-java-concurrency-collections</module>
10971098
<module>core-java-io</module>
1099+
<module>core-java-security</module>
10981100
<module>core-java-lang-syntax</module>
10991101
<module>core-java-lang</module>
11001102
<module>core-java-lang-oop</module>

0 commit comments

Comments
 (0)