public static final class OCSProto.Write.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<OCSProto.Write.Builder> implements OCSProto.WriteOrBuilder
Write stores the data and the encrypted secretProtobuf type
ocs.Write| Modifier and Type | Method and Description |
|---|---|
OCSProto.Write.Builder |
addAllCs(Iterable<? extends com.google.protobuf.ByteString> values)
Cs are the ElGamal parts for the symmetric key material (might
also contain an IV)
|
OCSProto.Write.Builder |
addCs(com.google.protobuf.ByteString value)
Cs are the ElGamal parts for the symmetric key material (might
also contain an IV)
|
OCSProto.Write.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
OCSProto.Write |
build() |
OCSProto.Write |
buildPartial() |
OCSProto.Write.Builder |
clear() |
OCSProto.Write.Builder |
clearCs()
Cs are the ElGamal parts for the symmetric key material (might
also contain an IV)
|
OCSProto.Write.Builder |
clearData()
Data should be encrypted by the application under the symmetric key in U and Cs
|
OCSProto.Write.Builder |
clearE()
E is the non-interactive challenge as scalar
|
OCSProto.Write.Builder |
clearExtradata()
ExtraData is clear text and application-specific
|
OCSProto.Write.Builder |
clearF()
f is the proof - written in uppercase here so it is an exported field,
but in the OCS-paper it's lowercase.
|
OCSProto.Write.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
OCSProto.Write.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
OCSProto.Write.Builder |
clearReader()
Reader points to a darc where the reading-rights are stored
|
OCSProto.Write.Builder |
clearSignature()
Signature must come from a valid writer stored in the admin darc of the OCS
skipchain.
|
OCSProto.Write.Builder |
clearU()
U is the encrypted random value for the ElGamal encryption
|
OCSProto.Write.Builder |
clearUbar()
Ubar, E and f will be used by the server to verify the writer did
correctly encrypt the key.
|
OCSProto.Write.Builder |
clone() |
com.google.protobuf.ByteString |
getCs(int index)
Cs are the ElGamal parts for the symmetric key material (might
also contain an IV)
|
int |
getCsCount()
Cs are the ElGamal parts for the symmetric key material (might
also contain an IV)
|
List<com.google.protobuf.ByteString> |
getCsList()
Cs are the ElGamal parts for the symmetric key material (might
also contain an IV)
|
com.google.protobuf.ByteString |
getData()
Data should be encrypted by the application under the symmetric key in U and Cs
|
OCSProto.Write |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
com.google.protobuf.ByteString |
getE()
E is the non-interactive challenge as scalar
|
com.google.protobuf.ByteString |
getExtradata()
ExtraData is clear text and application-specific
|
com.google.protobuf.ByteString |
getF()
f is the proof - written in uppercase here so it is an exported field,
but in the OCS-paper it's lowercase.
|
DarcOCSProto.Darc |
getReader()
Reader points to a darc where the reading-rights are stored
|
DarcOCSProto.Darc.Builder |
getReaderBuilder()
Reader points to a darc where the reading-rights are stored
|
DarcOCSProto.DarcOrBuilder |
getReaderOrBuilder()
Reader points to a darc where the reading-rights are stored
|
DarcOCSProto.Signature |
getSignature()
Signature must come from a valid writer stored in the admin darc of the OCS
skipchain.
|
DarcOCSProto.Signature.Builder |
getSignatureBuilder()
Signature must come from a valid writer stored in the admin darc of the OCS
skipchain.
|
DarcOCSProto.SignatureOrBuilder |
getSignatureOrBuilder()
Signature must come from a valid writer stored in the admin darc of the OCS
skipchain.
|
com.google.protobuf.ByteString |
getU()
U is the encrypted random value for the ElGamal encryption
|
com.google.protobuf.ByteString |
getUbar()
Ubar, E and f will be used by the server to verify the writer did
correctly encrypt the key.
|
boolean |
hasData()
Data should be encrypted by the application under the symmetric key in U and Cs
|
boolean |
hasE()
E is the non-interactive challenge as scalar
|
boolean |
hasExtradata()
ExtraData is clear text and application-specific
|
boolean |
hasF()
f is the proof - written in uppercase here so it is an exported field,
but in the OCS-paper it's lowercase.
|
boolean |
hasReader()
Reader points to a darc where the reading-rights are stored
|
boolean |
hasSignature()
Signature must come from a valid writer stored in the admin darc of the OCS
skipchain.
|
boolean |
hasU()
U is the encrypted random value for the ElGamal encryption
|
boolean |
hasUbar()
Ubar, E and f will be used by the server to verify the writer did
correctly encrypt the key.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
OCSProto.Write.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
OCSProto.Write.Builder |
mergeFrom(com.google.protobuf.Message other) |
OCSProto.Write.Builder |
mergeFrom(OCSProto.Write other) |
OCSProto.Write.Builder |
mergeReader(DarcOCSProto.Darc value)
Reader points to a darc where the reading-rights are stored
|
OCSProto.Write.Builder |
mergeSignature(DarcOCSProto.Signature value)
Signature must come from a valid writer stored in the admin darc of the OCS
skipchain.
|
OCSProto.Write.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
OCSProto.Write.Builder |
setCs(int index,
com.google.protobuf.ByteString value)
Cs are the ElGamal parts for the symmetric key material (might
also contain an IV)
|
OCSProto.Write.Builder |
setData(com.google.protobuf.ByteString value)
Data should be encrypted by the application under the symmetric key in U and Cs
|
OCSProto.Write.Builder |
setE(com.google.protobuf.ByteString value)
E is the non-interactive challenge as scalar
|
OCSProto.Write.Builder |
setExtradata(com.google.protobuf.ByteString value)
ExtraData is clear text and application-specific
|
OCSProto.Write.Builder |
setF(com.google.protobuf.ByteString value)
f is the proof - written in uppercase here so it is an exported field,
but in the OCS-paper it's lowercase.
|
OCSProto.Write.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
OCSProto.Write.Builder |
setReader(DarcOCSProto.Darc.Builder builderForValue)
Reader points to a darc where the reading-rights are stored
|
OCSProto.Write.Builder |
setReader(DarcOCSProto.Darc value)
Reader points to a darc where the reading-rights are stored
|
OCSProto.Write.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
OCSProto.Write.Builder |
setSignature(DarcOCSProto.Signature.Builder builderForValue)
Signature must come from a valid writer stored in the admin darc of the OCS
skipchain.
|
OCSProto.Write.Builder |
setSignature(DarcOCSProto.Signature value)
Signature must come from a valid writer stored in the admin darc of the OCS
skipchain.
|
OCSProto.Write.Builder |
setU(com.google.protobuf.ByteString value)
U is the encrypted random value for the ElGamal encryption
|
OCSProto.Write.Builder |
setUbar(com.google.protobuf.ByteString value)
Ubar, E and f will be used by the server to verify the writer did
correctly encrypt the key.
|
OCSProto.Write.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<OCSProto.Write.Builder>public OCSProto.Write.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<OCSProto.Write.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<OCSProto.Write.Builder>public OCSProto.Write getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic OCSProto.Write build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic OCSProto.Write buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic OCSProto.Write.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<OCSProto.Write.Builder>public OCSProto.Write.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<OCSProto.Write.Builder>public OCSProto.Write.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<OCSProto.Write.Builder>public OCSProto.Write.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<OCSProto.Write.Builder>public OCSProto.Write.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<OCSProto.Write.Builder>public OCSProto.Write.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<OCSProto.Write.Builder>public OCSProto.Write.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<OCSProto.Write.Builder>public OCSProto.Write.Builder mergeFrom(OCSProto.Write other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<OCSProto.Write.Builder>public OCSProto.Write.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<OCSProto.Write.Builder>IOExceptionpublic boolean hasData()
Data should be encrypted by the application under the symmetric key in U and Cs
required bytes data = 1;hasData in interface OCSProto.WriteOrBuilderpublic com.google.protobuf.ByteString getData()
Data should be encrypted by the application under the symmetric key in U and Cs
required bytes data = 1;getData in interface OCSProto.WriteOrBuilderpublic OCSProto.Write.Builder setData(com.google.protobuf.ByteString value)
Data should be encrypted by the application under the symmetric key in U and Cs
required bytes data = 1;public OCSProto.Write.Builder clearData()
Data should be encrypted by the application under the symmetric key in U and Cs
required bytes data = 1;public boolean hasU()
U is the encrypted random value for the ElGamal encryption
required bytes u = 2;hasU in interface OCSProto.WriteOrBuilderpublic com.google.protobuf.ByteString getU()
U is the encrypted random value for the ElGamal encryption
required bytes u = 2;getU in interface OCSProto.WriteOrBuilderpublic OCSProto.Write.Builder setU(com.google.protobuf.ByteString value)
U is the encrypted random value for the ElGamal encryption
required bytes u = 2;public OCSProto.Write.Builder clearU()
U is the encrypted random value for the ElGamal encryption
required bytes u = 2;public boolean hasUbar()
Ubar, E and f will be used by the server to verify the writer did correctly encrypt the key. It binds the policy (the darc) with the cyphertext. Ubar is used for the log-equality proof
required bytes ubar = 3;hasUbar in interface OCSProto.WriteOrBuilderpublic com.google.protobuf.ByteString getUbar()
Ubar, E and f will be used by the server to verify the writer did correctly encrypt the key. It binds the policy (the darc) with the cyphertext. Ubar is used for the log-equality proof
required bytes ubar = 3;getUbar in interface OCSProto.WriteOrBuilderpublic OCSProto.Write.Builder setUbar(com.google.protobuf.ByteString value)
Ubar, E and f will be used by the server to verify the writer did correctly encrypt the key. It binds the policy (the darc) with the cyphertext. Ubar is used for the log-equality proof
required bytes ubar = 3;public OCSProto.Write.Builder clearUbar()
Ubar, E and f will be used by the server to verify the writer did correctly encrypt the key. It binds the policy (the darc) with the cyphertext. Ubar is used for the log-equality proof
required bytes ubar = 3;public boolean hasE()
E is the non-interactive challenge as scalar
required bytes e = 4;hasE in interface OCSProto.WriteOrBuilderpublic com.google.protobuf.ByteString getE()
E is the non-interactive challenge as scalar
required bytes e = 4;getE in interface OCSProto.WriteOrBuilderpublic OCSProto.Write.Builder setE(com.google.protobuf.ByteString value)
E is the non-interactive challenge as scalar
required bytes e = 4;public OCSProto.Write.Builder clearE()
E is the non-interactive challenge as scalar
required bytes e = 4;public boolean hasF()
f is the proof - written in uppercase here so it is an exported field, but in the OCS-paper it's lowercase.
required bytes f = 5;hasF in interface OCSProto.WriteOrBuilderpublic com.google.protobuf.ByteString getF()
f is the proof - written in uppercase here so it is an exported field, but in the OCS-paper it's lowercase.
required bytes f = 5;getF in interface OCSProto.WriteOrBuilderpublic OCSProto.Write.Builder setF(com.google.protobuf.ByteString value)
f is the proof - written in uppercase here so it is an exported field, but in the OCS-paper it's lowercase.
required bytes f = 5;public OCSProto.Write.Builder clearF()
f is the proof - written in uppercase here so it is an exported field, but in the OCS-paper it's lowercase.
required bytes f = 5;public List<com.google.protobuf.ByteString> getCsList()
Cs are the ElGamal parts for the symmetric key material (might also contain an IV)
repeated bytes cs = 6;getCsList in interface OCSProto.WriteOrBuilderpublic int getCsCount()
Cs are the ElGamal parts for the symmetric key material (might also contain an IV)
repeated bytes cs = 6;getCsCount in interface OCSProto.WriteOrBuilderpublic com.google.protobuf.ByteString getCs(int index)
Cs are the ElGamal parts for the symmetric key material (might also contain an IV)
repeated bytes cs = 6;getCs in interface OCSProto.WriteOrBuilderpublic OCSProto.Write.Builder setCs(int index, com.google.protobuf.ByteString value)
Cs are the ElGamal parts for the symmetric key material (might also contain an IV)
repeated bytes cs = 6;public OCSProto.Write.Builder addCs(com.google.protobuf.ByteString value)
Cs are the ElGamal parts for the symmetric key material (might also contain an IV)
repeated bytes cs = 6;public OCSProto.Write.Builder addAllCs(Iterable<? extends com.google.protobuf.ByteString> values)
Cs are the ElGamal parts for the symmetric key material (might also contain an IV)
repeated bytes cs = 6;public OCSProto.Write.Builder clearCs()
Cs are the ElGamal parts for the symmetric key material (might also contain an IV)
repeated bytes cs = 6;public boolean hasExtradata()
ExtraData is clear text and application-specific
optional bytes extradata = 7;hasExtradata in interface OCSProto.WriteOrBuilderpublic com.google.protobuf.ByteString getExtradata()
ExtraData is clear text and application-specific
optional bytes extradata = 7;getExtradata in interface OCSProto.WriteOrBuilderpublic OCSProto.Write.Builder setExtradata(com.google.protobuf.ByteString value)
ExtraData is clear text and application-specific
optional bytes extradata = 7;public OCSProto.Write.Builder clearExtradata()
ExtraData is clear text and application-specific
optional bytes extradata = 7;public boolean hasReader()
Reader points to a darc where the reading-rights are stored
required .darcOCS.Darc reader = 8;hasReader in interface OCSProto.WriteOrBuilderpublic DarcOCSProto.Darc getReader()
Reader points to a darc where the reading-rights are stored
required .darcOCS.Darc reader = 8;getReader in interface OCSProto.WriteOrBuilderpublic OCSProto.Write.Builder setReader(DarcOCSProto.Darc value)
Reader points to a darc where the reading-rights are stored
required .darcOCS.Darc reader = 8;public OCSProto.Write.Builder setReader(DarcOCSProto.Darc.Builder builderForValue)
Reader points to a darc where the reading-rights are stored
required .darcOCS.Darc reader = 8;public OCSProto.Write.Builder mergeReader(DarcOCSProto.Darc value)
Reader points to a darc where the reading-rights are stored
required .darcOCS.Darc reader = 8;public OCSProto.Write.Builder clearReader()
Reader points to a darc where the reading-rights are stored
required .darcOCS.Darc reader = 8;public DarcOCSProto.Darc.Builder getReaderBuilder()
Reader points to a darc where the reading-rights are stored
required .darcOCS.Darc reader = 8;public DarcOCSProto.DarcOrBuilder getReaderOrBuilder()
Reader points to a darc where the reading-rights are stored
required .darcOCS.Darc reader = 8;getReaderOrBuilder in interface OCSProto.WriteOrBuilderpublic boolean hasSignature()
Signature must come from a valid writer stored in the admin darc of the OCS skipchain. For backwards-compatibility, this is an optional field. But for every new write-request, it must be set.
optional .darcOCS.Signature signature = 9;hasSignature in interface OCSProto.WriteOrBuilderpublic DarcOCSProto.Signature getSignature()
Signature must come from a valid writer stored in the admin darc of the OCS skipchain. For backwards-compatibility, this is an optional field. But for every new write-request, it must be set.
optional .darcOCS.Signature signature = 9;getSignature in interface OCSProto.WriteOrBuilderpublic OCSProto.Write.Builder setSignature(DarcOCSProto.Signature value)
Signature must come from a valid writer stored in the admin darc of the OCS skipchain. For backwards-compatibility, this is an optional field. But for every new write-request, it must be set.
optional .darcOCS.Signature signature = 9;public OCSProto.Write.Builder setSignature(DarcOCSProto.Signature.Builder builderForValue)
Signature must come from a valid writer stored in the admin darc of the OCS skipchain. For backwards-compatibility, this is an optional field. But for every new write-request, it must be set.
optional .darcOCS.Signature signature = 9;public OCSProto.Write.Builder mergeSignature(DarcOCSProto.Signature value)
Signature must come from a valid writer stored in the admin darc of the OCS skipchain. For backwards-compatibility, this is an optional field. But for every new write-request, it must be set.
optional .darcOCS.Signature signature = 9;public OCSProto.Write.Builder clearSignature()
Signature must come from a valid writer stored in the admin darc of the OCS skipchain. For backwards-compatibility, this is an optional field. But for every new write-request, it must be set.
optional .darcOCS.Signature signature = 9;public DarcOCSProto.Signature.Builder getSignatureBuilder()
Signature must come from a valid writer stored in the admin darc of the OCS skipchain. For backwards-compatibility, this is an optional field. But for every new write-request, it must be set.
optional .darcOCS.Signature signature = 9;public DarcOCSProto.SignatureOrBuilder getSignatureOrBuilder()
Signature must come from a valid writer stored in the admin darc of the OCS skipchain. For backwards-compatibility, this is an optional field. But for every new write-request, it must be set.
optional .darcOCS.Signature signature = 9;getSignatureOrBuilder in interface OCSProto.WriteOrBuilderpublic final OCSProto.Write.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<OCSProto.Write.Builder>public final OCSProto.Write.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<OCSProto.Write.Builder>Copyright © 2018. All rights reserved.