Interface SignedObjectCallback
public interface SignedObjectCallback
Describes a callback for receiving information about signed objects.
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
onEnd
(SignedObjectsSummary summary) Called after the signature information for the final requested object has been provided.void
Called when no object was found in the repository for the requestedobjectId
.void
onSigned
(SignableObjectType type, String objectId, String signature, String signedContent) Called when the requested object was found and contained a signature.default void
onStart
(SignedObjectsContext context) Called before the signature information for the first requested object is provided.void
onUnsigned
(SignableObjectType type, String objectId) Called when the requested object was found, but was not signed.
-
Method Details
-
onEnd
Called after the signature information for the final requested object has been provided.Note: If there no objects were requested, this method may be called immediately after
onStart(SignedObjectsContext)
without any calls to any of the other callback methods.- Parameters:
summary
- summarizes the request- Throws:
IOException
- for implementations which perform I/O
-
onMissing
Called when no object was found in the repository for the requestedobjectId
.- Parameters:
objectId
- the requested object ID- Throws:
IOException
- for implementations which perform I/O
-
onSigned
void onSigned(@Nonnull SignableObjectType type, @Nonnull String objectId, @Nonnull String signature, @Nonnull String signedContent) throws IOException Called when the requested object was found and contained a signature.- Parameters:
type
- the type of object for which the signature and signed content is returnedobjectId
- the requested object IDsignature
- the signaturesignedContent
- the object content that was signed- Throws:
IOException
- for implementations which perform I/O
-
onStart
Called before the signature information for the first requested object is provided.- Parameters:
context
- provides details about the request for signature information is being streamed- Throws:
IOException
- for implementations which perform I/O
-
onUnsigned
Called when the requested object was found, but was not signed.- Parameters:
type
- the type of object that was found if it's signable, otherwise nullobjectId
- the requested object ID- Throws:
IOException
- for implementations which perform I/O
-