org.apache.hadoop.io.Writablepublic class DockerCredentialTokenIdentifier
extends org.apache.hadoop.security.token.TokenIdentifier
| Modifier and Type | Field | Description |
|---|---|---|
static org.apache.hadoop.io.Text |
KIND |
| Constructor | Description |
|---|---|
DockerCredentialTokenIdentifier() |
Default constructor needed for the Service Loader.
|
DockerCredentialTokenIdentifier(java.lang.String registryUrl,
java.lang.String applicationId) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(java.lang.Object other) |
|
java.lang.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.
|
java.lang.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(java.io.DataInput in) |
Populate the Proto object with the input.
|
java.lang.String |
toString() |
|
void |
write(java.io.DataOutput out) |
Write the TokenIdentifier to the output stream.
|
public DockerCredentialTokenIdentifier(java.lang.String registryUrl,
java.lang.String applicationId)
public DockerCredentialTokenIdentifier()
public void write(java.io.DataOutput out)
throws java.io.IOException
out - DataOutput to serialize this object into.java.io.IOException - if the write fails.public void readFields(java.io.DataInput in)
throws java.io.IOException
in - DataInput to deserialize this object from.java.io.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.TokenIdentifierpublic org.apache.hadoop.security.UserGroupInformation getUser()
getUser in class org.apache.hadoop.security.token.TokenIdentifierpublic java.lang.String getRegistryUrl()
public java.lang.String getApplicationId()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2008–2025 Apache Software Foundation. All rights reserved.