Skip to content

Commit 44c9ae4

Browse files
committed
Refactoring
1 parent f2fb8fe commit 44c9ae4

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

crypto-shiro/src/main/java/de/dominikschadow/javasecurity/hash/SHA512Hash.java renamed to crypto-shiro/src/main/java/de/dominikschadow/javasecurity/hash/SHA512.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
*
3434
* @author Dominik Schadow
3535
*/
36-
public class SHA512Hash {
37-
private static final Logger log = LoggerFactory.getLogger(SHA512Hash.class);
36+
public class SHA512 {
37+
private static final Logger log = LoggerFactory.getLogger(SHA512.class);
3838
/**
3939
* Nothing up my sleeve number as private salt, not good for production.
4040
*/
@@ -44,7 +44,7 @@ public class SHA512Hash {
4444
/**
4545
* Private constructor.
4646
*/
47-
private SHA512Hash() {
47+
private SHA512() {
4848
}
4949

5050
public static void main(String[] args) {

crypto-shiro/src/main/java/de/dominikschadow/javasecurity/symmetric/AESEncryption.java renamed to crypto-shiro/src/main/java/de/dominikschadow/javasecurity/symmetric/AES.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@
3434
*
3535
* @author Dominik Schadow
3636
*/
37-
public class AESEncryption {
38-
private static final Logger log = LoggerFactory.getLogger(AESEncryption.class);
37+
public class AES {
38+
private static final Logger log = LoggerFactory.getLogger(AES.class);
3939
private static final String KEYSTORE_PATH = "/samples.ks";
4040

4141
/**
4242
* Private constructor.
4343
*/
44-
private AESEncryption() {
44+
private AES() {
4545
}
4646

4747
public static void main(String[] args) {
@@ -63,7 +63,7 @@ public static void main(String[] args) {
6363
}
6464

6565
private static KeyStore loadKeystore(char[] keystorePassword) throws KeyStoreException, CertificateException, NoSuchAlgorithmException, IOException {
66-
InputStream keystoreStream = AESEncryption.class.getResourceAsStream(KEYSTORE_PATH);
66+
InputStream keystoreStream = AES.class.getResourceAsStream(KEYSTORE_PATH);
6767

6868
KeyStore ks = KeyStore.getInstance("JCEKS");
6969
ks.load(keystoreStream, keystorePassword);

0 commit comments

Comments
 (0)