@InterfaceAudience.Private @InterfaceStability.Unstable public class TokenPBImpl extends Token
Constructor and Description |
---|
TokenPBImpl() |
TokenPBImpl(SecurityProtos.TokenProto proto) |
Modifier and Type | Method and Description |
---|---|
protected ByteBuffer |
convertFromProtoFormat(com.google.protobuf.ByteString byteString) |
protected com.google.protobuf.ByteString |
convertToProtoFormat(ByteBuffer byteBuffer) |
boolean |
equals(Object other) |
ByteBuffer |
getIdentifier()
Get the token identifier.
|
String |
getKind()
Get the token kind.
|
ByteBuffer |
getPassword()
Get the token password
|
SecurityProtos.TokenProto |
getProto() |
String |
getService()
Get the service to which the token is allocated.
|
int |
hashCode() |
void |
setIdentifier(ByteBuffer identifier) |
void |
setKind(String kind) |
void |
setPassword(ByteBuffer password) |
void |
setService(String service) |
String |
toString() |
newInstance
public TokenPBImpl()
public TokenPBImpl(SecurityProtos.TokenProto proto)
public SecurityProtos.TokenProto getProto()
protected final ByteBuffer convertFromProtoFormat(com.google.protobuf.ByteString byteString)
protected final com.google.protobuf.ByteString convertToProtoFormat(ByteBuffer byteBuffer)
public ByteBuffer getIdentifier()
Token
getIdentifier
in class Token
public void setIdentifier(ByteBuffer identifier)
setIdentifier
in class Token
public ByteBuffer getPassword()
Token
getPassword
in class Token
public void setPassword(ByteBuffer password)
setPassword
in class Token
public String getService()
Token
getService
in class Token
public void setService(String service)
setService
in class Token
Copyright © 2013 Apache Software Foundation. All rights reserved.