Class SignerInfo.Builder (0.3.0)

public static final class SignerInfo.Builder extends GeneratedMessage.Builder<SignerInfo.Builder> implements SignerInfoOrBuilder

File metadata related to the signer information.

Protobuf type google.backstory.SignerInfo

Implements

SignerInfoOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public SignerInfo build()
Returns
Type Description
SignerInfo

buildPartial()

public SignerInfo buildPartial()
Returns
Type Description
SignerInfo

clear()

public SignerInfo.Builder clear()
Returns
Type Description
SignerInfo.Builder
Overrides

clearCertIssuer()

public SignerInfo.Builder clearCertIssuer()

Company that issued the certificate.

optional string cert_issuer = 4;

Returns
Type Description
SignerInfo.Builder

This builder for chaining.

clearName()

public SignerInfo.Builder clearName()

Common name of the signers/certificate. The order of the signers matters. Each element is a higher level authority, the last being the root authority.

optional string name = 1;

Returns
Type Description
SignerInfo.Builder

This builder for chaining.

clearStatus()

public SignerInfo.Builder clearStatus()

It can say "Valid" or state the problem with the certificate if any (e.g. "This certificate or one of the certificates in the certificate chain is not time valid.").

optional string status = 2;

Returns
Type Description
SignerInfo.Builder

This builder for chaining.

clearValidUsage()

public SignerInfo.Builder clearValidUsage()

Indicates which situations the certificate is valid for (e.g. "Code Signing").

optional string valid_usage = 3;

Returns
Type Description
SignerInfo.Builder

This builder for chaining.

getCertIssuer()

public String getCertIssuer()

Company that issued the certificate.

optional string cert_issuer = 4;

Returns
Type Description
String

The certIssuer.

getCertIssuerBytes()

public ByteString getCertIssuerBytes()

Company that issued the certificate.

optional string cert_issuer = 4;

Returns
Type Description
ByteString

The bytes for certIssuer.

getDefaultInstanceForType()

public SignerInfo getDefaultInstanceForType()
Returns
Type Description
SignerInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getName()

public String getName()

Common name of the signers/certificate. The order of the signers matters. Each element is a higher level authority, the last being the root authority.

optional string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Common name of the signers/certificate. The order of the signers matters. Each element is a higher level authority, the last being the root authority.

optional string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getStatus()

public String getStatus()

It can say "Valid" or state the problem with the certificate if any (e.g. "This certificate or one of the certificates in the certificate chain is not time valid.").

optional string status = 2;

Returns
Type Description
String

The status.

getStatusBytes()

public ByteString getStatusBytes()

It can say "Valid" or state the problem with the certificate if any (e.g. "This certificate or one of the certificates in the certificate chain is not time valid.").

optional string status = 2;

Returns
Type Description
ByteString

The bytes for status.

getValidUsage()

public String getValidUsage()

Indicates which situations the certificate is valid for (e.g. "Code Signing").

optional string valid_usage = 3;

Returns
Type Description
String

The validUsage.

getValidUsageBytes()

public ByteString getValidUsageBytes()

Indicates which situations the certificate is valid for (e.g. "Code Signing").

optional string valid_usage = 3;

Returns
Type Description
ByteString

The bytes for validUsage.

hasCertIssuer()

public boolean hasCertIssuer()

Company that issued the certificate.

optional string cert_issuer = 4;

Returns
Type Description
boolean

Whether the certIssuer field is set.

hasName()

public boolean hasName()

Common name of the signers/certificate. The order of the signers matters. Each element is a higher level authority, the last being the root authority.

optional string name = 1;

Returns
Type Description
boolean

Whether the name field is set.

hasStatus()

public boolean hasStatus()

It can say "Valid" or state the problem with the certificate if any (e.g. "This certificate or one of the certificates in the certificate chain is not time valid.").

optional string status = 2;

Returns
Type Description
boolean

Whether the status field is set.

hasValidUsage()

public boolean hasValidUsage()

Indicates which situations the certificate is valid for (e.g. "Code Signing").

optional string valid_usage = 3;

Returns
Type Description
boolean

Whether the validUsage field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SignerInfo other)

public SignerInfo.Builder mergeFrom(SignerInfo other)
Parameter
Name Description
other SignerInfo
Returns
Type Description
SignerInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SignerInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SignerInfo.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SignerInfo.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SignerInfo.Builder
Overrides

setCertIssuer(String value)

public SignerInfo.Builder setCertIssuer(String value)

Company that issued the certificate.

optional string cert_issuer = 4;

Parameter
Name Description
value String

The certIssuer to set.

Returns
Type Description
SignerInfo.Builder

This builder for chaining.

setCertIssuerBytes(ByteString value)

public SignerInfo.Builder setCertIssuerBytes(ByteString value)

Company that issued the certificate.

optional string cert_issuer = 4;

Parameter
Name Description
value ByteString

The bytes for certIssuer to set.

Returns
Type Description
SignerInfo.Builder

This builder for chaining.

setName(String value)

public SignerInfo.Builder setName(String value)

Common name of the signers/certificate. The order of the signers matters. Each element is a higher level authority, the last being the root authority.

optional string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
SignerInfo.Builder

This builder for chaining.

setNameBytes(ByteString value)

public SignerInfo.Builder setNameBytes(ByteString value)

Common name of the signers/certificate. The order of the signers matters. Each element is a higher level authority, the last being the root authority.

optional string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
SignerInfo.Builder

This builder for chaining.

setStatus(String value)

public SignerInfo.Builder setStatus(String value)

It can say "Valid" or state the problem with the certificate if any (e.g. "This certificate or one of the certificates in the certificate chain is not time valid.").

optional string status = 2;

Parameter
Name Description
value String

The status to set.

Returns
Type Description
SignerInfo.Builder

This builder for chaining.

setStatusBytes(ByteString value)

public SignerInfo.Builder setStatusBytes(ByteString value)

It can say "Valid" or state the problem with the certificate if any (e.g. "This certificate or one of the certificates in the certificate chain is not time valid.").

optional string status = 2;

Parameter
Name Description
value ByteString

The bytes for status to set.

Returns
Type Description
SignerInfo.Builder

This builder for chaining.

setValidUsage(String value)

public SignerInfo.Builder setValidUsage(String value)

Indicates which situations the certificate is valid for (e.g. "Code Signing").

optional string valid_usage = 3;

Parameter
Name Description
value String

The validUsage to set.

Returns
Type Description
SignerInfo.Builder

This builder for chaining.

setValidUsageBytes(ByteString value)

public SignerInfo.Builder setValidUsageBytes(ByteString value)

Indicates which situations the certificate is valid for (e.g. "Code Signing").

optional string valid_usage = 3;

Parameter
Name Description
value ByteString

The bytes for validUsage to set.

Returns
Type Description
SignerInfo.Builder

This builder for chaining.