Package com.google.crypto.tink
Interface Annotations
-
- All Known Implementing Classes:
MonitoringAnnotations
public interface AnnotationsRepresents annotations which can be attached to aKeysetHandleand later retrieved.Annotations can be set in a
KeysetHandleat the time of creation, and can later be obtained withKeysetHandle.getAnnotationsOrNull(java.lang.Class<T>). This is useful when one wants to add external information to the keyset handle (e.g. for monitoring) without changing the whole call stack.We note that annotations are not copied when a keyset is copied (e.g., by creating a
KeysetHandle.Builder).