-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor code for easier understanding
- Loading branch information
Felix Zwirn
committed
Jul 12, 2024
1 parent
dcd23fa
commit c38db71
Showing
113 changed files
with
3,053 additions
and
2,704 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
...t/core-legacy/src/main/java/de/taimos/dvalin/interconnect/core/crypto/ICryptoService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package de.taimos.dvalin.interconnect.core.crypto; | ||
|
||
import de.taimos.dvalin.interconnect.core.exceptions.InfrastructureException; | ||
import de.taimos.dvalin.interconnect.core.exceptions.MessageCryptoException; | ||
|
||
import javax.jms.JMSException; | ||
import javax.jms.TextMessage; | ||
|
||
/** | ||
* Copyright 2024 Cinovo AG<br> | ||
* <br> | ||
* | ||
* @author fzwirn | ||
*/ | ||
public interface ICryptoService { | ||
|
||
/** | ||
* @param txt the message to encrypt | ||
* @return if message is secure | ||
* @throws MessageCryptoException on crypto errors | ||
* @throws InfrastructureException on infrastructure exception | ||
*/ | ||
boolean isMessageSecure(final TextMessage txt) throws MessageCryptoException, InfrastructureException, MessageCryptoException; | ||
|
||
/** | ||
* @param txt the message to encrypt | ||
* @return the decrypted text message | ||
* @throws MessageCryptoException on crypto errors | ||
*/ | ||
TextMessage decryptMessage(final TextMessage txt) throws MessageCryptoException; | ||
|
||
/** | ||
* @param txt the message to encrypt | ||
* @return the secured text message | ||
* @throws JMSException on JMS errors | ||
* @throws MessageCryptoException on crypto errors | ||
*/ | ||
TextMessage secureMessage(final TextMessage txt) throws JMSException, MessageCryptoException; | ||
} |
Oops, something went wrong.