Interface PublicKeyOrBuilder

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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The key.