@InterfaceAudience.Private
@InterfaceStability.Unstable
public class TokenPBImpl
extends org.apache.hadoop.yarn.api.records.Token
Constructor and Description |
---|
TokenPBImpl() |
TokenPBImpl(org.apache.hadoop.security.proto.SecurityProtos.TokenProto proto) |
Modifier and Type | Method and Description |
---|---|
protected ByteBuffer |
convertFromProtoFormat(org.apache.hadoop.thirdparty.protobuf.ByteString byteString) |
protected org.apache.hadoop.thirdparty.protobuf.ByteString |
convertToProtoFormat(ByteBuffer byteBuffer) |
boolean |
equals(Object other) |
ByteBuffer |
getIdentifier() |
String |
getKind() |
ByteBuffer |
getPassword() |
org.apache.hadoop.security.proto.SecurityProtos.TokenProto |
getProto() |
String |
getService() |
int |
hashCode() |
void |
setIdentifier(ByteBuffer identifier) |
void |
setKind(String kind) |
void |
setPassword(ByteBuffer password) |
void |
setService(String service) |
String |
toString() |
public TokenPBImpl()
public TokenPBImpl(org.apache.hadoop.security.proto.SecurityProtos.TokenProto proto)
public org.apache.hadoop.security.proto.SecurityProtos.TokenProto getProto()
protected final ByteBuffer convertFromProtoFormat(org.apache.hadoop.thirdparty.protobuf.ByteString byteString)
protected final org.apache.hadoop.thirdparty.protobuf.ByteString convertToProtoFormat(ByteBuffer byteBuffer)
public ByteBuffer getIdentifier()
getIdentifier
in class org.apache.hadoop.yarn.api.records.Token
public void setIdentifier(ByteBuffer identifier)
setIdentifier
in class org.apache.hadoop.yarn.api.records.Token
public ByteBuffer getPassword()
getPassword
in class org.apache.hadoop.yarn.api.records.Token
public void setPassword(ByteBuffer password)
setPassword
in class org.apache.hadoop.yarn.api.records.Token
public String getKind()
getKind
in class org.apache.hadoop.yarn.api.records.Token
public void setKind(String kind)
setKind
in class org.apache.hadoop.yarn.api.records.Token
public String getService()
getService
in class org.apache.hadoop.yarn.api.records.Token
public void setService(String service)
setService
in class org.apache.hadoop.yarn.api.records.Token
Copyright © 2008–2022 Apache Software Foundation. All rights reserved.