public static final class Protos.Credential extends com.google.protobuf.GeneratedMessageV3 implements Protos.CredentialOrBuilder
Credential used in various places for authentication and authorization. NOTE: A 'principal' is different from 'FrameworkInfo.user'. The former is used for authentication and authorization while the latter is used to determine the default user under which the framework's executors/tasks are run.Protobuf type
mesos.Credential
Modifier and Type | Class and Description |
---|---|
static class |
Protos.Credential.Builder
Credential used in various places for authentication and
authorization.
|
Modifier and Type | Field and Description |
---|---|
static <any> |
PARSER
Deprecated.
|
static int |
PRINCIPAL_FIELD_NUMBER |
static int |
SECRET_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
static Protos.Credential |
getDefaultInstance() |
Protos.Credential |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
<any> |
getParserForType() |
java.lang.String |
getPrincipal()
required string principal = 1; |
com.google.protobuf.ByteString |
getPrincipalBytes()
required string principal = 1; |
java.lang.String |
getSecret()
optional string secret = 2; |
com.google.protobuf.ByteString |
getSecretBytes()
optional string secret = 2; |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
boolean |
hasPrincipal()
required string principal = 1; |
boolean |
hasSecret()
optional string secret = 2; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Protos.Credential.Builder |
newBuilder() |
static Protos.Credential.Builder |
newBuilder(Protos.Credential prototype) |
Protos.Credential.Builder |
newBuilderForType() |
protected Protos.Credential.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static Protos.Credential |
parseDelimitedFrom(java.io.InputStream input) |
static Protos.Credential |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Credential |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Credential |
parseFrom(java.nio.ByteBuffer data) |
static Protos.Credential |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Credential |
parseFrom(com.google.protobuf.ByteString data) |
static Protos.Credential |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Credential |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Protos.Credential |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Credential |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static <any> |
parser() |
Protos.Credential.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
public static final int PRINCIPAL_FIELD_NUMBER
public static final int SECRET_FIELD_NUMBER
@Deprecated public static final <any> PARSER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
public boolean hasPrincipal()
required string principal = 1;
hasPrincipal
in interface Protos.CredentialOrBuilder
public java.lang.String getPrincipal()
required string principal = 1;
getPrincipal
in interface Protos.CredentialOrBuilder
public com.google.protobuf.ByteString getPrincipalBytes()
required string principal = 1;
getPrincipalBytes
in interface Protos.CredentialOrBuilder
public boolean hasSecret()
optional string secret = 2;
hasSecret
in interface Protos.CredentialOrBuilder
public java.lang.String getSecret()
optional string secret = 2;
getSecret
in interface Protos.CredentialOrBuilder
public com.google.protobuf.ByteString getSecretBytes()
optional string secret = 2;
getSecretBytes
in interface Protos.CredentialOrBuilder
public final boolean isInitialized()
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
java.io.IOException
public int getSerializedSize()
public boolean equals(java.lang.Object obj)
public int hashCode()
public static Protos.Credential parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Credential parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Credential parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Credential parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Credential parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Credential parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Protos.Credential parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Protos.Credential parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Protos.Credential parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOException
public static Protos.Credential parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public Protos.Credential.Builder newBuilderForType()
public static Protos.Credential.Builder newBuilder()
public static Protos.Credential.Builder newBuilder(Protos.Credential prototype)
public Protos.Credential.Builder toBuilder()
protected Protos.Credential.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
public static Protos.Credential getDefaultInstance()
public static <any> parser()
public <any> getParserForType()
public Protos.Credential getDefaultInstanceForType()