Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extract Subscriber API into interface #28

Merged
merged 4 commits into from
Oct 13, 2020

Conversation

loetifuss
Copy link
Collaborator

for cleaner dependency handling the implementation code of Subscriber has been moved to DefaultSubscriber. Clients should only program against the interfaces so they don't need to bother about compile time dependencies to other libraries.

* @author Wolfgang Schmiesing (P224488, IT.IN.FRW)
* @author Christian Schlichtherle
*/
public final class DefaultSubscriber implements Subscriber {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This class should be package private. Clients should only depend on the Subscriber interface.

* es andernfalls zu Datenverlust kommt!
* Es wird daher empfohlen, die erneuerbaren Ausgabeströme nur in <i>try-with-resources</i>-Anweisungen zu benutzen.
*/
public SeconCallable<OutputStream> signAndEncryptTo(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Once the class is package private, this documentation should be removed.

@loetifuss loetifuss merged commit 0cb8195 into DieTechniker:master Oct 13, 2020
* Zeigt an, dass das im SECON-Kontext {@linkplain Subscriber#certificate() konfigurierte Zertifikat} zu keinem der
* vorgesehenen Empfänger einer verschlüsselten Nachricht passt und die Nachricht daher nicht entschlüsselt werden kann.
* Eine Instanziierung dieser Klasse außerhalb dieses Pakets ist nicht möglich.
* Zeigt an, dass das im SECON-Kontext {@linkplain DefaultSubscriber#certificate() konfigurierte Zertifikat} zu keinem
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Diese Methode gibt es nicht (mehr).

loetifuss added a commit to loetifuss/kks-encryption that referenced this pull request Oct 27, 2020
Merge pull request DieTechniker#28 from loetifuss/master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants