public interface SignedObjectCallback
Modifier and Type | Method and Description |
---|---|
default void |
onEnd(SignedObjectsSummary summary)
Called after the signature information for the final requested object has been provided.
|
void |
onMissing(String objectId)
Called when no object was found in the repository for the requested
objectId . |
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.
|
default void onEnd(@Nonnull SignedObjectsSummary summary) throws IOException
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.
summary
- summarizes the requestIOException
- for implementations which perform I/Ovoid onMissing(@Nonnull String objectId) throws IOException
objectId
.objectId
- the requested object IDIOException
- for implementations which perform I/Ovoid onSigned(@Nonnull SignableObjectType type, @Nonnull String objectId, @Nonnull String signature, @Nonnull String signedContent) throws IOException
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 signedIOException
- for implementations which perform I/Odefault void onStart(@Nonnull SignedObjectsContext context) throws IOException
context
- provides details about the request for signature information is being streamedIOException
- for implementations which perform I/Ovoid onUnsigned(@Nullable SignableObjectType type, @Nonnull String objectId) throws IOException
type
- the type of object that was found if it's signable, otherwise nullobjectId
- the requested object IDIOException
- for implementations which perform I/OCopyright © 2019 Atlassian. All rights reserved.