Class Challenge (2.86.0)

public final class Challenge extends GeneratedMessage implements ChallengeOrBuilder

A challenge to be signed by a 2FA key.

Protobuf type google.cloud.kms.v1.Challenge

Implements

ChallengeOrBuilder

Static Fields

CHALLENGE_FIELD_NUMBER

public static final int CHALLENGE_FIELD_NUMBER
Field Value
Type Description
int

PUBLIC_KEY_PEM_FIELD_NUMBER

public static final int PUBLIC_KEY_PEM_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Challenge getDefaultInstance()
Returns
Type Description
Challenge

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static Challenge.Builder newBuilder()
Returns
Type Description
Challenge.Builder

newBuilder(Challenge prototype)

public static Challenge.Builder newBuilder(Challenge prototype)
Parameter
Name Description
prototype Challenge
Returns
Type Description
Challenge.Builder

parseDelimitedFrom(InputStream input)

public static Challenge parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Challenge
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Challenge parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Challenge
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Challenge parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Challenge
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Challenge parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Challenge
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Challenge parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Challenge
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Challenge parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Challenge
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Challenge parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Challenge
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Challenge parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Challenge
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Challenge parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Challenge
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Challenge parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Challenge
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Challenge parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Challenge
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Challenge parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Challenge
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Challenge> parser()
Returns
Type Description
Parser<Challenge>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getChallenge()

public ByteString getChallenge()

Output only. The challenge to be signed by the 2FA key indicated by the public key.

bytes challenge = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The challenge.

getDefaultInstanceForType()

public Challenge getDefaultInstanceForType()
Returns
Type Description
Challenge

getParserForType()

public Parser<Challenge> getParserForType()
Returns
Type Description
Parser<Challenge>
Overrides

getPublicKeyPem()

public String getPublicKeyPem()

Output only. The public key associated with the 2FA key that should sign the challenge.

string public_key_pem = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The publicKeyPem.

getPublicKeyPemBytes()

public ByteString getPublicKeyPemBytes()

Output only. The public key associated with the 2FA key that should sign the challenge.

string public_key_pem = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for publicKeyPem.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Challenge.Builder newBuilderForType()
Returns
Type Description
Challenge.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected Challenge.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Challenge.Builder
Overrides

toBuilder()

public Challenge.Builder toBuilder()
Returns
Type Description
Challenge.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException