public static final class PkixPublicKey.Builder extends GeneratedMessage.Builder<PkixPublicKey.Builder> implements PkixPublicKeyOrBuilderA public key in the PkixPublicKey format (see https://tools.ietf.org/html/rfc5280#section-4.1.2.7 for details). Public keys of this type are typically textually encoded using the PEM format.
Protobuf type google.cloud.binaryauthorization.v1beta1.PkixPublicKey
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > PkixPublicKey.BuilderImplements
PkixPublicKeyOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public PkixPublicKey build()| Returns | |
|---|---|
| Type | Description |
PkixPublicKey |
|
buildPartial()
public PkixPublicKey buildPartial()| Returns | |
|---|---|
| Type | Description |
PkixPublicKey |
|
clear()
public PkixPublicKey.Builder clear()| Returns | |
|---|---|
| Type | Description |
PkixPublicKey.Builder |
|
clearPublicKeyPem()
public PkixPublicKey.Builder clearPublicKeyPem()A PEM-encoded public key, as described in https://tools.ietf.org/html/rfc7468#section-13
string public_key_pem = 1;
| Returns | |
|---|---|
| Type | Description |
PkixPublicKey.Builder |
This builder for chaining. |
clearSignatureAlgorithm()
public PkixPublicKey.Builder clearSignatureAlgorithm() The signature algorithm used to verify a message against a signature using
this key.
These signature algorithm must match the structure and any object
identifiers encoded in public_key_pem (i.e. this algorithm must match
that of the public key).
.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2;
| Returns | |
|---|---|
| Type | Description |
PkixPublicKey.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public PkixPublicKey getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
PkixPublicKey |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getPublicKeyPem()
public String getPublicKeyPem()A PEM-encoded public key, as described in https://tools.ietf.org/html/rfc7468#section-13
string public_key_pem = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The publicKeyPem. |
getPublicKeyPemBytes()
public ByteString getPublicKeyPemBytes()A PEM-encoded public key, as described in https://tools.ietf.org/html/rfc7468#section-13
string public_key_pem = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for publicKeyPem. |
getSignatureAlgorithm()
public PkixPublicKey.SignatureAlgorithm getSignatureAlgorithm() The signature algorithm used to verify a message against a signature using
this key.
These signature algorithm must match the structure and any object
identifiers encoded in public_key_pem (i.e. this algorithm must match
that of the public key).
.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2;
| Returns | |
|---|---|
| Type | Description |
PkixPublicKey.SignatureAlgorithm |
The signatureAlgorithm. |
getSignatureAlgorithmValue()
public int getSignatureAlgorithmValue() The signature algorithm used to verify a message against a signature using
this key.
These signature algorithm must match the structure and any object
identifiers encoded in public_key_pem (i.e. this algorithm must match
that of the public key).
.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for signatureAlgorithm. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(PkixPublicKey other)
public PkixPublicKey.Builder mergeFrom(PkixPublicKey other)| Parameter | |
|---|---|
| Name | Description |
other |
PkixPublicKey |
| Returns | |
|---|---|
| Type | Description |
PkixPublicKey.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public PkixPublicKey.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
PkixPublicKey.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public PkixPublicKey.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
PkixPublicKey.Builder |
|
setPublicKeyPem(String value)
public PkixPublicKey.Builder setPublicKeyPem(String value)A PEM-encoded public key, as described in https://tools.ietf.org/html/rfc7468#section-13
string public_key_pem = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe publicKeyPem to set. |
| Returns | |
|---|---|
| Type | Description |
PkixPublicKey.Builder |
This builder for chaining. |
setPublicKeyPemBytes(ByteString value)
public PkixPublicKey.Builder setPublicKeyPemBytes(ByteString value)A PEM-encoded public key, as described in https://tools.ietf.org/html/rfc7468#section-13
string public_key_pem = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for publicKeyPem to set. |
| Returns | |
|---|---|
| Type | Description |
PkixPublicKey.Builder |
This builder for chaining. |
setSignatureAlgorithm(PkixPublicKey.SignatureAlgorithm value)
public PkixPublicKey.Builder setSignatureAlgorithm(PkixPublicKey.SignatureAlgorithm value) The signature algorithm used to verify a message against a signature using
this key.
These signature algorithm must match the structure and any object
identifiers encoded in public_key_pem (i.e. this algorithm must match
that of the public key).
.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
PkixPublicKey.SignatureAlgorithmThe signatureAlgorithm to set. |
| Returns | |
|---|---|
| Type | Description |
PkixPublicKey.Builder |
This builder for chaining. |
setSignatureAlgorithmValue(int value)
public PkixPublicKey.Builder setSignatureAlgorithmValue(int value) The signature algorithm used to verify a message against a signature using
this key.
These signature algorithm must match the structure and any object
identifiers encoded in public_key_pem (i.e. this algorithm must match
that of the public key).
.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm signature_algorithm = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for signatureAlgorithm to set. |
| Returns | |
|---|---|
| Type | Description |
PkixPublicKey.Builder |
This builder for chaining. |