Interface PublicKeyOrBuilder (2.50.0)

public interface PublicKeyOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getFormat()

public abstract PublicKey.KeyFormat getFormat()

Required. The format of the public key.

.google.cloud.security.privateca.v1.PublicKey.KeyFormat format = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
PublicKey.KeyFormat

The format.

getFormatValue()

public abstract int getFormatValue()

Required. The format of the public key.

.google.cloud.security.privateca.v1.PublicKey.KeyFormat format = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for format.

getKey()

public abstract ByteString getKey()

Required. A public key. The padding and encoding must match with the KeyFormat value specified for the format field.

bytes key = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The key.