public static final class DarcProto.Darc extends com.google.protobuf.GeneratedMessageV3 implements DarcProto.DarcOrBuilder
Darc is the basic structure representing an access control. A Darc can evolve in the way that a new Darc points to the previous one and is signed by the owner(s) of the previous Darc.Protobuf type
darc.Darc| Modifier and Type | Class and Description |
|---|---|
static class |
DarcProto.Darc.Builder
Darc is the basic structure representing an access control.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
BASEID_FIELD_NUMBER |
static int |
DESCRIPTION_FIELD_NUMBER |
static com.google.protobuf.Parser<DarcProto.Darc> |
PARSER
Deprecated.
|
static int |
PREVID_FIELD_NUMBER |
static int |
RULES_FIELD_NUMBER |
static int |
SIGNATURES_FIELD_NUMBER |
static int |
VERIFICATIONDARCS_FIELD_NUMBER |
static int |
VERSION_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsRules(String key)
Rules map an action to an expression.
|
boolean |
equals(Object obj) |
com.google.protobuf.ByteString |
getBaseid()
BaseID is the ID of the first darc in the chain of evolution.
|
static DarcProto.Darc |
getDefaultInstance() |
DarcProto.Darc |
getDefaultInstanceForType() |
com.google.protobuf.ByteString |
getDescription()
Description is a free-form field that can hold any data as required
by the user.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Parser<DarcProto.Darc> |
getParserForType() |
com.google.protobuf.ByteString |
getPrevid()
PrevID is the previous darc ID in the chain of evolution.
|
Map<String,com.google.protobuf.ByteString> |
getRules()
Deprecated.
|
int |
getRulesCount()
Rules map an action to an expression.
|
Map<String,com.google.protobuf.ByteString> |
getRulesMap()
Rules map an action to an expression.
|
com.google.protobuf.ByteString |
getRulesOrDefault(String key,
com.google.protobuf.ByteString defaultValue)
Rules map an action to an expression.
|
com.google.protobuf.ByteString |
getRulesOrThrow(String key)
Rules map an action to an expression.
|
int |
getSerializedSize() |
DarcProto.Signature |
getSignatures(int index)
Signature is calculated on the Request-representation of the darc.
|
int |
getSignaturesCount()
Signature is calculated on the Request-representation of the darc.
|
List<DarcProto.Signature> |
getSignaturesList()
Signature is calculated on the Request-representation of the darc.
|
DarcProto.SignatureOrBuilder |
getSignaturesOrBuilder(int index)
Signature is calculated on the Request-representation of the darc.
|
List<? extends DarcProto.SignatureOrBuilder> |
getSignaturesOrBuilderList()
Signature is calculated on the Request-representation of the darc.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
DarcProto.Darc |
getVerificationdarcs(int index)
VerificationDarcs are a list of darcs that the verifier needs to
verify this darc.
|
int |
getVerificationdarcsCount()
VerificationDarcs are a list of darcs that the verifier needs to
verify this darc.
|
List<DarcProto.Darc> |
getVerificationdarcsList()
VerificationDarcs are a list of darcs that the verifier needs to
verify this darc.
|
DarcProto.DarcOrBuilder |
getVerificationdarcsOrBuilder(int index)
VerificationDarcs are a list of darcs that the verifier needs to
verify this darc.
|
List<? extends DarcProto.DarcOrBuilder> |
getVerificationdarcsOrBuilderList()
VerificationDarcs are a list of darcs that the verifier needs to
verify this darc.
|
long |
getVersion()
Version should be monotonically increasing over the evolution of a
Darc.
|
boolean |
hasBaseid()
BaseID is the ID of the first darc in the chain of evolution.
|
boolean |
hasDescription()
Description is a free-form field that can hold any data as required
by the user.
|
int |
hashCode() |
boolean |
hasPrevid()
PrevID is the previous darc ID in the chain of evolution.
|
boolean |
hasVersion()
Version should be monotonically increasing over the evolution of a
Darc.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static DarcProto.Darc.Builder |
newBuilder() |
static DarcProto.Darc.Builder |
newBuilder(DarcProto.Darc prototype) |
DarcProto.Darc.Builder |
newBuilderForType() |
protected DarcProto.Darc.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static DarcProto.Darc |
parseDelimitedFrom(InputStream input) |
static DarcProto.Darc |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DarcProto.Darc |
parseFrom(byte[] data) |
static DarcProto.Darc |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DarcProto.Darc |
parseFrom(ByteBuffer data) |
static DarcProto.Darc |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DarcProto.Darc |
parseFrom(com.google.protobuf.ByteString data) |
static DarcProto.Darc |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DarcProto.Darc |
parseFrom(com.google.protobuf.CodedInputStream input) |
static DarcProto.Darc |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DarcProto.Darc |
parseFrom(InputStream input) |
static DarcProto.Darc |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<DarcProto.Darc> |
parser() |
DarcProto.Darc.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int VERSION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
public static final int BASEID_FIELD_NUMBER
public static final int PREVID_FIELD_NUMBER
public static final int RULES_FIELD_NUMBER
public static final int SIGNATURES_FIELD_NUMBER
public static final int VERIFICATIONDARCS_FIELD_NUMBER
@Deprecated public static final com.google.protobuf.Parser<DarcProto.Darc> PARSER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public boolean hasVersion()
Version should be monotonically increasing over the evolution of a Darc.
required uint64 version = 1;hasVersion in interface DarcProto.DarcOrBuilderpublic long getVersion()
Version should be monotonically increasing over the evolution of a Darc.
required uint64 version = 1;getVersion in interface DarcProto.DarcOrBuilderpublic boolean hasDescription()
Description is a free-form field that can hold any data as required by the user. Darc itself will never depend on any of the data in here.
required bytes description = 2;hasDescription in interface DarcProto.DarcOrBuilderpublic com.google.protobuf.ByteString getDescription()
Description is a free-form field that can hold any data as required by the user. Darc itself will never depend on any of the data in here.
required bytes description = 2;getDescription in interface DarcProto.DarcOrBuilderpublic boolean hasBaseid()
BaseID is the ID of the first darc in the chain of evolution. It is not set if the darc is on version 0.
optional bytes baseid = 3;hasBaseid in interface DarcProto.DarcOrBuilderpublic com.google.protobuf.ByteString getBaseid()
BaseID is the ID of the first darc in the chain of evolution. It is not set if the darc is on version 0.
optional bytes baseid = 3;getBaseid in interface DarcProto.DarcOrBuilderpublic boolean hasPrevid()
PrevID is the previous darc ID in the chain of evolution.
required bytes previd = 4;hasPrevid in interface DarcProto.DarcOrBuilderpublic com.google.protobuf.ByteString getPrevid()
PrevID is the previous darc ID in the chain of evolution.
required bytes previd = 4;getPrevid in interface DarcProto.DarcOrBuilderpublic int getRulesCount()
DarcProto.DarcOrBuilderRules map an action to an expression.
map<string, bytes> rules = 5;getRulesCount in interface DarcProto.DarcOrBuilderpublic boolean containsRules(String key)
Rules map an action to an expression.
map<string, bytes> rules = 5;containsRules in interface DarcProto.DarcOrBuilder@Deprecated public Map<String,com.google.protobuf.ByteString> getRules()
getRulesMap() instead.getRules in interface DarcProto.DarcOrBuilderpublic Map<String,com.google.protobuf.ByteString> getRulesMap()
Rules map an action to an expression.
map<string, bytes> rules = 5;getRulesMap in interface DarcProto.DarcOrBuilderpublic com.google.protobuf.ByteString getRulesOrDefault(String key, com.google.protobuf.ByteString defaultValue)
Rules map an action to an expression.
map<string, bytes> rules = 5;getRulesOrDefault in interface DarcProto.DarcOrBuilderpublic com.google.protobuf.ByteString getRulesOrThrow(String key)
Rules map an action to an expression.
map<string, bytes> rules = 5;getRulesOrThrow in interface DarcProto.DarcOrBuilderpublic List<DarcProto.Signature> getSignaturesList()
Signature is calculated on the Request-representation of the darc. It needs to be created by identities that have the "_evolve" action from the previous valid Darc.
repeated .darc.Signature signatures = 6;getSignaturesList in interface DarcProto.DarcOrBuilderpublic List<? extends DarcProto.SignatureOrBuilder> getSignaturesOrBuilderList()
Signature is calculated on the Request-representation of the darc. It needs to be created by identities that have the "_evolve" action from the previous valid Darc.
repeated .darc.Signature signatures = 6;getSignaturesOrBuilderList in interface DarcProto.DarcOrBuilderpublic int getSignaturesCount()
Signature is calculated on the Request-representation of the darc. It needs to be created by identities that have the "_evolve" action from the previous valid Darc.
repeated .darc.Signature signatures = 6;getSignaturesCount in interface DarcProto.DarcOrBuilderpublic DarcProto.Signature getSignatures(int index)
Signature is calculated on the Request-representation of the darc. It needs to be created by identities that have the "_evolve" action from the previous valid Darc.
repeated .darc.Signature signatures = 6;getSignatures in interface DarcProto.DarcOrBuilderpublic DarcProto.SignatureOrBuilder getSignaturesOrBuilder(int index)
Signature is calculated on the Request-representation of the darc. It needs to be created by identities that have the "_evolve" action from the previous valid Darc.
repeated .darc.Signature signatures = 6;getSignaturesOrBuilder in interface DarcProto.DarcOrBuilderpublic List<DarcProto.Darc> getVerificationdarcsList()
VerificationDarcs are a list of darcs that the verifier needs to verify this darc. It is not needed in online verification where the verifier stores all darcs.
repeated .darc.Darc verificationdarcs = 7;getVerificationdarcsList in interface DarcProto.DarcOrBuilderpublic List<? extends DarcProto.DarcOrBuilder> getVerificationdarcsOrBuilderList()
VerificationDarcs are a list of darcs that the verifier needs to verify this darc. It is not needed in online verification where the verifier stores all darcs.
repeated .darc.Darc verificationdarcs = 7;getVerificationdarcsOrBuilderList in interface DarcProto.DarcOrBuilderpublic int getVerificationdarcsCount()
VerificationDarcs are a list of darcs that the verifier needs to verify this darc. It is not needed in online verification where the verifier stores all darcs.
repeated .darc.Darc verificationdarcs = 7;getVerificationdarcsCount in interface DarcProto.DarcOrBuilderpublic DarcProto.Darc getVerificationdarcs(int index)
VerificationDarcs are a list of darcs that the verifier needs to verify this darc. It is not needed in online verification where the verifier stores all darcs.
repeated .darc.Darc verificationdarcs = 7;getVerificationdarcs in interface DarcProto.DarcOrBuilderpublic DarcProto.DarcOrBuilder getVerificationdarcsOrBuilder(int index)
VerificationDarcs are a list of darcs that the verifier needs to verify this darc. It is not needed in online verification where the verifier stores all darcs.
repeated .darc.Darc verificationdarcs = 7;getVerificationdarcsOrBuilder in interface DarcProto.DarcOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static DarcProto.Darc parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DarcProto.Darc parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DarcProto.Darc parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DarcProto.Darc parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DarcProto.Darc parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DarcProto.Darc parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DarcProto.Darc parseFrom(InputStream input) throws IOException
IOExceptionpublic static DarcProto.Darc parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static DarcProto.Darc parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static DarcProto.Darc parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static DarcProto.Darc parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static DarcProto.Darc parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic DarcProto.Darc.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static DarcProto.Darc.Builder newBuilder()
public static DarcProto.Darc.Builder newBuilder(DarcProto.Darc prototype)
public DarcProto.Darc.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected DarcProto.Darc.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static DarcProto.Darc getDefaultInstance()
public static com.google.protobuf.Parser<DarcProto.Darc> parser()
public com.google.protobuf.Parser<DarcProto.Darc> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public DarcProto.Darc getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2018. All rights reserved.