• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2019 The Grafeas Authors. All rights reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     https://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 // Generated by the protocol buffer compiler.  DO NOT EDIT!
18 // source: grafeas/v1/attestation.proto
19 
20 package io.grafeas.v1;
21 
22 public interface AttestationOccurrenceOrBuilder
23     extends
24     // @@protoc_insertion_point(interface_extends:grafeas.v1.AttestationOccurrence)
25     com.google.protobuf.MessageOrBuilder {
26 
27   /**
28    *
29    *
30    * <pre>
31    * Required. The serialized payload that is verified by one or more
32    * `signatures`.
33    * </pre>
34    *
35    * <code>bytes serialized_payload = 1;</code>
36    *
37    * @return The serializedPayload.
38    */
getSerializedPayload()39   com.google.protobuf.ByteString getSerializedPayload();
40 
41   /**
42    *
43    *
44    * <pre>
45    * One or more signatures over `serialized_payload`.  Verifier implementations
46    * should consider this attestation message verified if at least one
47    * `signature` verifies `serialized_payload`.  See `Signature` in common.proto
48    * for more details on signature structure and verification.
49    * </pre>
50    *
51    * <code>repeated .grafeas.v1.Signature signatures = 2;</code>
52    */
getSignaturesList()53   java.util.List<io.grafeas.v1.Signature> getSignaturesList();
54   /**
55    *
56    *
57    * <pre>
58    * One or more signatures over `serialized_payload`.  Verifier implementations
59    * should consider this attestation message verified if at least one
60    * `signature` verifies `serialized_payload`.  See `Signature` in common.proto
61    * for more details on signature structure and verification.
62    * </pre>
63    *
64    * <code>repeated .grafeas.v1.Signature signatures = 2;</code>
65    */
getSignatures(int index)66   io.grafeas.v1.Signature getSignatures(int index);
67   /**
68    *
69    *
70    * <pre>
71    * One or more signatures over `serialized_payload`.  Verifier implementations
72    * should consider this attestation message verified if at least one
73    * `signature` verifies `serialized_payload`.  See `Signature` in common.proto
74    * for more details on signature structure and verification.
75    * </pre>
76    *
77    * <code>repeated .grafeas.v1.Signature signatures = 2;</code>
78    */
getSignaturesCount()79   int getSignaturesCount();
80   /**
81    *
82    *
83    * <pre>
84    * One or more signatures over `serialized_payload`.  Verifier implementations
85    * should consider this attestation message verified if at least one
86    * `signature` verifies `serialized_payload`.  See `Signature` in common.proto
87    * for more details on signature structure and verification.
88    * </pre>
89    *
90    * <code>repeated .grafeas.v1.Signature signatures = 2;</code>
91    */
getSignaturesOrBuilderList()92   java.util.List<? extends io.grafeas.v1.SignatureOrBuilder> getSignaturesOrBuilderList();
93   /**
94    *
95    *
96    * <pre>
97    * One or more signatures over `serialized_payload`.  Verifier implementations
98    * should consider this attestation message verified if at least one
99    * `signature` verifies `serialized_payload`.  See `Signature` in common.proto
100    * for more details on signature structure and verification.
101    * </pre>
102    *
103    * <code>repeated .grafeas.v1.Signature signatures = 2;</code>
104    */
getSignaturesOrBuilder(int index)105   io.grafeas.v1.SignatureOrBuilder getSignaturesOrBuilder(int index);
106 
107   /**
108    *
109    *
110    * <pre>
111    * One or more JWTs encoding a self-contained attestation.
112    * Each JWT encodes the payload that it verifies within the JWT itself.
113    * Verifier implementation SHOULD ignore the `serialized_payload` field
114    * when verifying these JWTs.
115    * If only JWTs are present on this AttestationOccurrence, then the
116    * `serialized_payload` SHOULD be left empty.
117    * Each JWT SHOULD encode a claim specific to the `resource_uri` of this
118    * Occurrence, but this is not validated by Grafeas metadata API
119    * implementations.  The JWT itself is opaque to Grafeas.
120    * </pre>
121    *
122    * <code>repeated .grafeas.v1.Jwt jwts = 3;</code>
123    */
getJwtsList()124   java.util.List<io.grafeas.v1.Jwt> getJwtsList();
125   /**
126    *
127    *
128    * <pre>
129    * One or more JWTs encoding a self-contained attestation.
130    * Each JWT encodes the payload that it verifies within the JWT itself.
131    * Verifier implementation SHOULD ignore the `serialized_payload` field
132    * when verifying these JWTs.
133    * If only JWTs are present on this AttestationOccurrence, then the
134    * `serialized_payload` SHOULD be left empty.
135    * Each JWT SHOULD encode a claim specific to the `resource_uri` of this
136    * Occurrence, but this is not validated by Grafeas metadata API
137    * implementations.  The JWT itself is opaque to Grafeas.
138    * </pre>
139    *
140    * <code>repeated .grafeas.v1.Jwt jwts = 3;</code>
141    */
getJwts(int index)142   io.grafeas.v1.Jwt getJwts(int index);
143   /**
144    *
145    *
146    * <pre>
147    * One or more JWTs encoding a self-contained attestation.
148    * Each JWT encodes the payload that it verifies within the JWT itself.
149    * Verifier implementation SHOULD ignore the `serialized_payload` field
150    * when verifying these JWTs.
151    * If only JWTs are present on this AttestationOccurrence, then the
152    * `serialized_payload` SHOULD be left empty.
153    * Each JWT SHOULD encode a claim specific to the `resource_uri` of this
154    * Occurrence, but this is not validated by Grafeas metadata API
155    * implementations.  The JWT itself is opaque to Grafeas.
156    * </pre>
157    *
158    * <code>repeated .grafeas.v1.Jwt jwts = 3;</code>
159    */
getJwtsCount()160   int getJwtsCount();
161   /**
162    *
163    *
164    * <pre>
165    * One or more JWTs encoding a self-contained attestation.
166    * Each JWT encodes the payload that it verifies within the JWT itself.
167    * Verifier implementation SHOULD ignore the `serialized_payload` field
168    * when verifying these JWTs.
169    * If only JWTs are present on this AttestationOccurrence, then the
170    * `serialized_payload` SHOULD be left empty.
171    * Each JWT SHOULD encode a claim specific to the `resource_uri` of this
172    * Occurrence, but this is not validated by Grafeas metadata API
173    * implementations.  The JWT itself is opaque to Grafeas.
174    * </pre>
175    *
176    * <code>repeated .grafeas.v1.Jwt jwts = 3;</code>
177    */
getJwtsOrBuilderList()178   java.util.List<? extends io.grafeas.v1.JwtOrBuilder> getJwtsOrBuilderList();
179   /**
180    *
181    *
182    * <pre>
183    * One or more JWTs encoding a self-contained attestation.
184    * Each JWT encodes the payload that it verifies within the JWT itself.
185    * Verifier implementation SHOULD ignore the `serialized_payload` field
186    * when verifying these JWTs.
187    * If only JWTs are present on this AttestationOccurrence, then the
188    * `serialized_payload` SHOULD be left empty.
189    * Each JWT SHOULD encode a claim specific to the `resource_uri` of this
190    * Occurrence, but this is not validated by Grafeas metadata API
191    * implementations.  The JWT itself is opaque to Grafeas.
192    * </pre>
193    *
194    * <code>repeated .grafeas.v1.Jwt jwts = 3;</code>
195    */
getJwtsOrBuilder(int index)196   io.grafeas.v1.JwtOrBuilder getJwtsOrBuilder(int index);
197 }
198