1/**
2 * Licensed to the Apache Software Foundation (ASF) under one
3 * or more contributor license agreements.  See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership.  The ASF licenses this file
6 * to you under the Apache License, Version 2.0 (the
7 * "License"); you may not use this file except in compliance
8 * with the License.  You may obtain a copy of the License at
9 *
10 *     http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
18
19/**
20 * These .proto interfaces are private and stable.
21 * Please see http://wiki.apache.org/hadoop/Compatibility
22 * for what changes are allowed for a *stable* .proto interface.
23 */
24
25option java_package = "org.apache.hadoop.security.proto";
26option java_outer_classname = "SecurityProtos";
27option java_generic_services = true;
28option java_generate_equals_and_hash = true;
29package hadoop.common;
30
31/**
32 * Security token identifier
33 */
34message TokenProto {
35  required bytes identifier = 1;
36  required bytes password = 2;
37  required string kind = 3;
38  required string service = 4;
39}
40
41message GetDelegationTokenRequestProto {
42  required string renewer = 1;
43}
44
45message GetDelegationTokenResponseProto {
46  optional hadoop.common.TokenProto token = 1;
47}
48
49message RenewDelegationTokenRequestProto {
50  required hadoop.common.TokenProto token = 1;
51}
52
53message RenewDelegationTokenResponseProto {
54  required uint64 newExpiryTime = 1;
55}
56
57message CancelDelegationTokenRequestProto {
58  required hadoop.common.TokenProto token = 1;
59}
60
61message CancelDelegationTokenResponseProto { // void response
62}
63
64