From ca93aaf7995d4fbdd8d1c2dcc67b66715c3f936f Mon Sep 17 00:00:00 2001 From: Suresh Srinivas Date: Fri, 11 Jan 2013 17:10:00 +0000 Subject: [PATCH] HADOOP-9192. Move token related request/response messages to common. Contributed by Suresh Srinivas. git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1432158 13f79535-47bb-0310-9956-ffa450edef68 --- .../hadoop-common/CHANGES.txt | 3 +++ .../src/main/proto/Security.proto | 23 +++++++++++++++++++ 2 files changed, 26 insertions(+) diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt index 8f0d1e72113..2ca826bfb99 100644 --- a/hadoop-common-project/hadoop-common/CHANGES.txt +++ b/hadoop-common-project/hadoop-common/CHANGES.txt @@ -430,6 +430,9 @@ Release 2.0.3-alpha - Unreleased HADOOP-9119. Add test to FileSystemContractBaseTest to verify integrity of overwritten files. (Steve Loughran via suresh) + HADOOP-9192. Move token related request/response messages to common. + (suresh) + OPTIMIZATIONS HADOOP-8866. SampleQuantiles#query is O(N^2) instead of O(N). (Andrew Wang diff --git a/hadoop-common-project/hadoop-common/src/main/proto/Security.proto b/hadoop-common-project/hadoop-common/src/main/proto/Security.proto index 0aab15a544f..961ee9d7885 100644 --- a/hadoop-common-project/hadoop-common/src/main/proto/Security.proto +++ b/hadoop-common-project/hadoop-common/src/main/proto/Security.proto @@ -32,3 +32,26 @@ message TokenProto { required string service = 4; } +message GetDelegationTokenRequestProto { + required string renewer = 1; +} + +message GetDelegationTokenResponseProto { + optional hadoop.common.TokenProto token = 1; +} + +message RenewDelegationTokenRequestProto { + required hadoop.common.TokenProto token = 1; +} + +message RenewDelegationTokenResponseProto { + required uint64 newExpiryTime = 1; +} + +message CancelDelegationTokenRequestProto { + required hadoop.common.TokenProto token = 1; +} + +message CancelDelegationTokenResponseProto { // void response +} +