public class DockerCredentialTokenIdentifier
extends org.apache.hadoop.security.token.TokenIdentifier
Modifier and Type | Field and Description |
---|---|
static org.apache.hadoop.io.Text |
KIND |
Constructor and Description |
---|
DockerCredentialTokenIdentifier()
Default constructor needed for the Service Loader.
|
DockerCredentialTokenIdentifier(String registryUrl,
String applicationId) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
String |
getApplicationId()
Get the application ID.
|
org.apache.hadoop.io.Text |
getKind()
Return the TokenIdentifier kind.
|
org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.DockerCredentialTokenIdentifierProto |
getProto()
Return the ProtoBuf formatted data.
|
String |
getRegistryUrl()
Get the registry URL.
|
org.apache.hadoop.security.UserGroupInformation |
getUser()
Return a remote user based on the registry URL and Application ID.
|
int |
hashCode() |
void |
readFields(DataInput in)
Populate the Proto object with the input.
|
String |
toString() |
void |
write(DataOutput out)
Write the TokenIdentifier to the output stream.
|
public DockerCredentialTokenIdentifier(String registryUrl, String applicationId)
public DockerCredentialTokenIdentifier()
public void write(DataOutput out) throws IOException
out
- DataOutput
to serialize this object into.IOException
- if the write fails.public void readFields(DataInput in) throws IOException
in
- DataInput
to deserialize this object from.IOException
- if the read fails.public org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.DockerCredentialTokenIdentifierProto getProto()
public org.apache.hadoop.io.Text getKind()
getKind
in class org.apache.hadoop.security.token.TokenIdentifier
public org.apache.hadoop.security.UserGroupInformation getUser()
getUser
in class org.apache.hadoop.security.token.TokenIdentifier
public String getRegistryUrl()
public String getApplicationId()
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.