public static class PrimitiveSet.Builder<P> extends Object
| Modifier and Type | Method and Description |
|---|---|
PrimitiveSet.Builder<P> |
addFullPrimitive(P fullPrimitive,
Key key,
Keyset.Key protoKey)
Adds a non-primary primitive.
|
PrimitiveSet.Builder<P> |
addPrimaryFullPrimitive(P fullPrimitive,
Key key,
Keyset.Key protoKey)
Adds the primary primitive.
|
PrimitiveSet<P> |
build() |
PrimitiveSet.Builder<P> |
setAnnotations(MonitoringAnnotations annotations) |
@CanIgnoreReturnValue public PrimitiveSet.Builder<P> addFullPrimitive(P fullPrimitive, Key key, Keyset.Key protoKey) throws GeneralSecurityException
The caller must make sure that the fullPrimitive is a full primitive constructed
from key, and that protoKey contains the same key as fullPrimitive.
GeneralSecurityException@CanIgnoreReturnValue public PrimitiveSet.Builder<P> addPrimaryFullPrimitive(P fullPrimitive, Key key, Keyset.Key protoKey) throws GeneralSecurityException
The caller must make sure that the fullPrimitive is a full primitive constructed
from key, and that protoKey contains the same key as fullPrimitive.
GeneralSecurityException@CanIgnoreReturnValue public PrimitiveSet.Builder<P> setAnnotations(MonitoringAnnotations annotations)
public PrimitiveSet<P> build() throws GeneralSecurityException
GeneralSecurityException