-
Notifications
You must be signed in to change notification settings - Fork 7
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
Conversation
* @author Wolfgang Schmiesing (P224488, IT.IN.FRW) | ||
* @author Christian Schlichtherle | ||
*/ | ||
public final class DefaultSubscriber implements Subscriber { |
There was a problem hiding this comment.
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( |
There was a problem hiding this comment.
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.
* 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 |
There was a problem hiding this comment.
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).
Merge pull request DieTechniker#28 from loetifuss/master
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.