• 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/common.proto
19 
20 package io.grafeas.v1;
21 
22 public interface SignatureOrBuilder
23     extends
24     // @@protoc_insertion_point(interface_extends:grafeas.v1.Signature)
25     com.google.protobuf.MessageOrBuilder {
26 
27   /**
28    *
29    *
30    * <pre>
31    * The content of the signature, an opaque bytestring.
32    * The payload that this signature verifies MUST be unambiguously provided
33    * with the Signature during verification. A wrapper message might provide
34    * the payload explicitly. Alternatively, a message might have a canonical
35    * serialization that can always be unambiguously computed to derive the
36    * payload.
37    * </pre>
38    *
39    * <code>bytes signature = 1;</code>
40    *
41    * @return The signature.
42    */
getSignature()43   com.google.protobuf.ByteString getSignature();
44 
45   /**
46    *
47    *
48    * <pre>
49    * The identifier for the public key that verifies this signature.
50    *   * The `public_key_id` is required.
51    *   * The `public_key_id` SHOULD be an RFC3986 conformant URI.
52    *   * When possible, the `public_key_id` SHOULD be an immutable reference,
53    *     such as a cryptographic digest.
54    * Examples of valid `public_key_id`s:
55    * OpenPGP V4 public key fingerprint:
56    *   * "openpgp4fpr:74FAF3B861BDA0870C7B6DEF607E48D2A663AEEA"
57    * See https://www.iana.org/assignments/uri-schemes/prov/openpgp4fpr for more
58    * details on this scheme.
59    * RFC6920 digest-named SubjectPublicKeyInfo (digest of the DER
60    * serialization):
61    *   * "ni:///sha-256;cD9o9Cq6LG3jD0iKXqEi_vdjJGecm_iXkbqVoScViaU"
62    *   * "nih:///sha-256;703f68f42aba2c6de30f488a5ea122fef76324679c9bf89791ba95a1271589a5"
63    * </pre>
64    *
65    * <code>string public_key_id = 2;</code>
66    *
67    * @return The publicKeyId.
68    */
getPublicKeyId()69   java.lang.String getPublicKeyId();
70   /**
71    *
72    *
73    * <pre>
74    * The identifier for the public key that verifies this signature.
75    *   * The `public_key_id` is required.
76    *   * The `public_key_id` SHOULD be an RFC3986 conformant URI.
77    *   * When possible, the `public_key_id` SHOULD be an immutable reference,
78    *     such as a cryptographic digest.
79    * Examples of valid `public_key_id`s:
80    * OpenPGP V4 public key fingerprint:
81    *   * "openpgp4fpr:74FAF3B861BDA0870C7B6DEF607E48D2A663AEEA"
82    * See https://www.iana.org/assignments/uri-schemes/prov/openpgp4fpr for more
83    * details on this scheme.
84    * RFC6920 digest-named SubjectPublicKeyInfo (digest of the DER
85    * serialization):
86    *   * "ni:///sha-256;cD9o9Cq6LG3jD0iKXqEi_vdjJGecm_iXkbqVoScViaU"
87    *   * "nih:///sha-256;703f68f42aba2c6de30f488a5ea122fef76324679c9bf89791ba95a1271589a5"
88    * </pre>
89    *
90    * <code>string public_key_id = 2;</code>
91    *
92    * @return The bytes for publicKeyId.
93    */
getPublicKeyIdBytes()94   com.google.protobuf.ByteString getPublicKeyIdBytes();
95 }
96