Class SSLCertificate.Extension.Builder (0.3.0)

public static final class SSLCertificate.Extension.Builder extends GeneratedMessage.Builder<SSLCertificate.Extension.Builder> implements SSLCertificate.ExtensionOrBuilder

Certificate's extensions.

Protobuf type google.backstory.SSLCertificate.Extension

Static Methods

getDescriptor()

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

Methods

build()

public SSLCertificate.Extension build()
Returns
Type Description
SSLCertificate.Extension

buildPartial()

public SSLCertificate.Extension buildPartial()
Returns
Type Description
SSLCertificate.Extension

clear()

public SSLCertificate.Extension.Builder clear()
Returns
Type Description
SSLCertificate.Extension.Builder
Overrides

clearAuthorityKeyId()

public SSLCertificate.Extension.Builder clearAuthorityKeyId()

Identifies the public key to be used to verify the signature on this certificate or CRL.

.google.backstory.SSLCertificate.AuthorityKeyId authority_key_id = 3;

Returns
Type Description
SSLCertificate.Extension.Builder

clearCa()

public SSLCertificate.Extension.Builder clearCa()

Whether the subject acts as a certificate authority (CA) or not.

bool ca = 1;

Returns
Type Description
SSLCertificate.Extension.Builder

This builder for chaining.

clearCaInfoAccess()

public SSLCertificate.Extension.Builder clearCaInfoAccess()

Authority information access locations are URLs that are added to a certificate in its authority information access extension.

string ca_info_access = 7;

Returns
Type Description
SSLCertificate.Extension.Builder

This builder for chaining.

clearCertTemplateNameDc()

public SSLCertificate.Extension.Builder clearCertTemplateNameDc()

BMP data value "DomainController". See MS Q291010.

string cert_template_name_dc = 13;

Returns
Type Description
SSLCertificate.Extension.Builder

This builder for chaining.

clearCertificatePolicies()

public SSLCertificate.Extension.Builder clearCertificatePolicies()

Different certificate policies will relate to different applications which may use the certified key.

string certificate_policies = 11;

Returns
Type Description
SSLCertificate.Extension.Builder

This builder for chaining.

clearCrlDistributionPoints()

public SSLCertificate.Extension.Builder clearCrlDistributionPoints()

CRL distribution points to which a certificate user should refer to ascertain if the certificate has been revoked.

string crl_distribution_points = 8;

Returns
Type Description
SSLCertificate.Extension.Builder

This builder for chaining.

clearExtendedKeyUsage()

public SSLCertificate.Extension.Builder clearExtendedKeyUsage()

One or more purposes for which the certified public key may be used, in addition to or in place of the basic purposes indicated in the key usage extension field.

string extended_key_usage = 9;

Returns
Type Description
SSLCertificate.Extension.Builder

This builder for chaining.

clearKeyUsage()

public SSLCertificate.Extension.Builder clearKeyUsage()

The purpose for which the certified public key is used.

string key_usage = 6;

Returns
Type Description
SSLCertificate.Extension.Builder

This builder for chaining.

clearNetscapeCertComment()

public SSLCertificate.Extension.Builder clearNetscapeCertComment()

Used to include free-form text comments inside certificates.

string netscape_cert_comment = 12;

Returns
Type Description
SSLCertificate.Extension.Builder

This builder for chaining.

clearNetscapeCertificate()

public SSLCertificate.Extension.Builder clearNetscapeCertificate()

Identify whether the certificate subject is an SSL client, an SSL server, or a CA.

bool netscape_certificate = 14;

Returns
Type Description
SSLCertificate.Extension.Builder

This builder for chaining.

clearOldAuthorityKeyId()

public SSLCertificate.Extension.Builder clearOldAuthorityKeyId()

Whether the certificate has an old authority key identifier extension.

bool old_authority_key_id = 16;

Returns
Type Description
SSLCertificate.Extension.Builder

This builder for chaining.

clearPeLogotype()

public SSLCertificate.Extension.Builder clearPeLogotype()

Whether the certificate includes a logotype.

bool pe_logotype = 15;

Returns
Type Description
SSLCertificate.Extension.Builder

This builder for chaining.

clearSubjectAlternativeName()

public SSLCertificate.Extension.Builder clearSubjectAlternativeName()

Contains one or more alternative names, using any of a variety of name forms, for the entity that is bound by the CA to the certified public key.

string subject_alternative_name = 10;

Returns
Type Description
SSLCertificate.Extension.Builder

This builder for chaining.

clearSubjectKeyId()

public SSLCertificate.Extension.Builder clearSubjectKeyId()

Identifies the public key being certified.

string subject_key_id = 2;

Returns
Type Description
SSLCertificate.Extension.Builder

This builder for chaining.

getAuthorityKeyId()

public SSLCertificate.AuthorityKeyId getAuthorityKeyId()

Identifies the public key to be used to verify the signature on this certificate or CRL.

.google.backstory.SSLCertificate.AuthorityKeyId authority_key_id = 3;

Returns
Type Description
SSLCertificate.AuthorityKeyId

The authorityKeyId.

getAuthorityKeyIdBuilder()

public SSLCertificate.AuthorityKeyId.Builder getAuthorityKeyIdBuilder()

Identifies the public key to be used to verify the signature on this certificate or CRL.

.google.backstory.SSLCertificate.AuthorityKeyId authority_key_id = 3;

Returns
Type Description
SSLCertificate.AuthorityKeyId.Builder

getAuthorityKeyIdOrBuilder()

public SSLCertificate.AuthorityKeyIdOrBuilder getAuthorityKeyIdOrBuilder()

Identifies the public key to be used to verify the signature on this certificate or CRL.

.google.backstory.SSLCertificate.AuthorityKeyId authority_key_id = 3;

Returns
Type Description
SSLCertificate.AuthorityKeyIdOrBuilder

getCa()

public boolean getCa()

Whether the subject acts as a certificate authority (CA) or not.

bool ca = 1;

Returns
Type Description
boolean

The ca.

getCaInfoAccess()

public String getCaInfoAccess()

Authority information access locations are URLs that are added to a certificate in its authority information access extension.

string ca_info_access = 7;

Returns
Type Description
String

The caInfoAccess.

getCaInfoAccessBytes()

public ByteString getCaInfoAccessBytes()

Authority information access locations are URLs that are added to a certificate in its authority information access extension.

string ca_info_access = 7;

Returns
Type Description
ByteString

The bytes for caInfoAccess.

getCertTemplateNameDc()

public String getCertTemplateNameDc()

BMP data value "DomainController". See MS Q291010.

string cert_template_name_dc = 13;

Returns
Type Description
String

The certTemplateNameDc.

getCertTemplateNameDcBytes()

public ByteString getCertTemplateNameDcBytes()

BMP data value "DomainController". See MS Q291010.

string cert_template_name_dc = 13;

Returns
Type Description
ByteString

The bytes for certTemplateNameDc.

getCertificatePolicies()

public String getCertificatePolicies()

Different certificate policies will relate to different applications which may use the certified key.

string certificate_policies = 11;

Returns
Type Description
String

The certificatePolicies.

getCertificatePoliciesBytes()

public ByteString getCertificatePoliciesBytes()

Different certificate policies will relate to different applications which may use the certified key.

string certificate_policies = 11;

Returns
Type Description
ByteString

The bytes for certificatePolicies.

getCrlDistributionPoints()

public String getCrlDistributionPoints()

CRL distribution points to which a certificate user should refer to ascertain if the certificate has been revoked.

string crl_distribution_points = 8;

Returns
Type Description
String

The crlDistributionPoints.

getCrlDistributionPointsBytes()

public ByteString getCrlDistributionPointsBytes()

CRL distribution points to which a certificate user should refer to ascertain if the certificate has been revoked.

string crl_distribution_points = 8;

Returns
Type Description
ByteString

The bytes for crlDistributionPoints.

getDefaultInstanceForType()

public SSLCertificate.Extension getDefaultInstanceForType()
Returns
Type Description
SSLCertificate.Extension

getDescriptorForType()

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

getExtendedKeyUsage()

public String getExtendedKeyUsage()

One or more purposes for which the certified public key may be used, in addition to or in place of the basic purposes indicated in the key usage extension field.

string extended_key_usage = 9;

Returns
Type Description
String

The extendedKeyUsage.

getExtendedKeyUsageBytes()

public ByteString getExtendedKeyUsageBytes()

One or more purposes for which the certified public key may be used, in addition to or in place of the basic purposes indicated in the key usage extension field.

string extended_key_usage = 9;

Returns
Type Description
ByteString

The bytes for extendedKeyUsage.

getKeyUsage()

public String getKeyUsage()

The purpose for which the certified public key is used.

string key_usage = 6;

Returns
Type Description
String

The keyUsage.

getKeyUsageBytes()

public ByteString getKeyUsageBytes()

The purpose for which the certified public key is used.

string key_usage = 6;

Returns
Type Description
ByteString

The bytes for keyUsage.

getNetscapeCertComment()

public String getNetscapeCertComment()

Used to include free-form text comments inside certificates.

string netscape_cert_comment = 12;

Returns
Type Description
String

The netscapeCertComment.

getNetscapeCertCommentBytes()

public ByteString getNetscapeCertCommentBytes()

Used to include free-form text comments inside certificates.

string netscape_cert_comment = 12;

Returns
Type Description
ByteString

The bytes for netscapeCertComment.

getNetscapeCertificate()

public boolean getNetscapeCertificate()

Identify whether the certificate subject is an SSL client, an SSL server, or a CA.

bool netscape_certificate = 14;

Returns
Type Description
boolean

The netscapeCertificate.

getOldAuthorityKeyId()

public boolean getOldAuthorityKeyId()

Whether the certificate has an old authority key identifier extension.

bool old_authority_key_id = 16;

Returns
Type Description
boolean

The oldAuthorityKeyId.

getPeLogotype()

public boolean getPeLogotype()

Whether the certificate includes a logotype.

bool pe_logotype = 15;

Returns
Type Description
boolean

The peLogotype.

getSubjectAlternativeName()

public String getSubjectAlternativeName()

Contains one or more alternative names, using any of a variety of name forms, for the entity that is bound by the CA to the certified public key.

string subject_alternative_name = 10;

Returns
Type Description
String

The subjectAlternativeName.

getSubjectAlternativeNameBytes()

public ByteString getSubjectAlternativeNameBytes()

Contains one or more alternative names, using any of a variety of name forms, for the entity that is bound by the CA to the certified public key.

string subject_alternative_name = 10;

Returns
Type Description
ByteString

The bytes for subjectAlternativeName.

getSubjectKeyId()

public String getSubjectKeyId()

Identifies the public key being certified.

string subject_key_id = 2;

Returns
Type Description
String

The subjectKeyId.

getSubjectKeyIdBytes()

public ByteString getSubjectKeyIdBytes()

Identifies the public key being certified.

string subject_key_id = 2;

Returns
Type Description
ByteString

The bytes for subjectKeyId.

hasAuthorityKeyId()

public boolean hasAuthorityKeyId()

Identifies the public key to be used to verify the signature on this certificate or CRL.

.google.backstory.SSLCertificate.AuthorityKeyId authority_key_id = 3;

Returns
Type Description
boolean

Whether the authorityKeyId field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAuthorityKeyId(SSLCertificate.AuthorityKeyId value)

public SSLCertificate.Extension.Builder mergeAuthorityKeyId(SSLCertificate.AuthorityKeyId value)

Identifies the public key to be used to verify the signature on this certificate or CRL.

.google.backstory.SSLCertificate.AuthorityKeyId authority_key_id = 3;

Parameter
Name Description
value SSLCertificate.AuthorityKeyId
Returns
Type Description
SSLCertificate.Extension.Builder

mergeFrom(SSLCertificate.Extension other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setAuthorityKeyId(SSLCertificate.AuthorityKeyId value)

public SSLCertificate.Extension.Builder setAuthorityKeyId(SSLCertificate.AuthorityKeyId value)

Identifies the public key to be used to verify the signature on this certificate or CRL.

.google.backstory.SSLCertificate.AuthorityKeyId authority_key_id = 3;

Parameter
Name Description
value SSLCertificate.AuthorityKeyId
Returns
Type Description
SSLCertificate.Extension.Builder

setAuthorityKeyId(SSLCertificate.AuthorityKeyId.Builder builderForValue)

public SSLCertificate.Extension.Builder setAuthorityKeyId(SSLCertificate.AuthorityKeyId.Builder builderForValue)

Identifies the public key to be used to verify the signature on this certificate or CRL.

.google.backstory.SSLCertificate.AuthorityKeyId authority_key_id = 3;

Parameter
Name Description
builderForValue SSLCertificate.AuthorityKeyId.Builder
Returns
Type Description
SSLCertificate.Extension.Builder

setCa(boolean value)

public SSLCertificate.Extension.Builder setCa(boolean value)

Whether the subject acts as a certificate authority (CA) or not.

bool ca = 1;

Parameter
Name Description
value boolean

The ca to set.

Returns
Type Description
SSLCertificate.Extension.Builder

This builder for chaining.

setCaInfoAccess(String value)

public SSLCertificate.Extension.Builder setCaInfoAccess(String value)

Authority information access locations are URLs that are added to a certificate in its authority information access extension.

string ca_info_access = 7;

Parameter
Name Description
value String

The caInfoAccess to set.

Returns
Type Description
SSLCertificate.Extension.Builder

This builder for chaining.

setCaInfoAccessBytes(ByteString value)

public SSLCertificate.Extension.Builder setCaInfoAccessBytes(ByteString value)

Authority information access locations are URLs that are added to a certificate in its authority information access extension.

string ca_info_access = 7;

Parameter
Name Description
value ByteString

The bytes for caInfoAccess to set.

Returns
Type Description
SSLCertificate.Extension.Builder

This builder for chaining.

setCertTemplateNameDc(String value)

public SSLCertificate.Extension.Builder setCertTemplateNameDc(String value)

BMP data value "DomainController". See MS Q291010.

string cert_template_name_dc = 13;

Parameter
Name Description
value String

The certTemplateNameDc to set.

Returns
Type Description
SSLCertificate.Extension.Builder

This builder for chaining.

setCertTemplateNameDcBytes(ByteString value)

public SSLCertificate.Extension.Builder setCertTemplateNameDcBytes(ByteString value)

BMP data value "DomainController". See MS Q291010.

string cert_template_name_dc = 13;

Parameter
Name Description
value ByteString

The bytes for certTemplateNameDc to set.

Returns
Type Description
SSLCertificate.Extension.Builder

This builder for chaining.

setCertificatePolicies(String value)

public SSLCertificate.Extension.Builder setCertificatePolicies(String value)

Different certificate policies will relate to different applications which may use the certified key.

string certificate_policies = 11;

Parameter
Name Description
value String

The certificatePolicies to set.

Returns
Type Description
SSLCertificate.Extension.Builder

This builder for chaining.

setCertificatePoliciesBytes(ByteString value)

public SSLCertificate.Extension.Builder setCertificatePoliciesBytes(ByteString value)

Different certificate policies will relate to different applications which may use the certified key.

string certificate_policies = 11;

Parameter
Name Description
value ByteString

The bytes for certificatePolicies to set.

Returns
Type Description
SSLCertificate.Extension.Builder

This builder for chaining.

setCrlDistributionPoints(String value)

public SSLCertificate.Extension.Builder setCrlDistributionPoints(String value)

CRL distribution points to which a certificate user should refer to ascertain if the certificate has been revoked.

string crl_distribution_points = 8;

Parameter
Name Description
value String

The crlDistributionPoints to set.

Returns
Type Description
SSLCertificate.Extension.Builder

This builder for chaining.

setCrlDistributionPointsBytes(ByteString value)

public SSLCertificate.Extension.Builder setCrlDistributionPointsBytes(ByteString value)

CRL distribution points to which a certificate user should refer to ascertain if the certificate has been revoked.

string crl_distribution_points = 8;

Parameter
Name Description
value ByteString

The bytes for crlDistributionPoints to set.

Returns
Type Description
SSLCertificate.Extension.Builder

This builder for chaining.

setExtendedKeyUsage(String value)

public SSLCertificate.Extension.Builder setExtendedKeyUsage(String value)

One or more purposes for which the certified public key may be used, in addition to or in place of the basic purposes indicated in the key usage extension field.

string extended_key_usage = 9;

Parameter
Name Description
value String

The extendedKeyUsage to set.

Returns
Type Description
SSLCertificate.Extension.Builder

This builder for chaining.

setExtendedKeyUsageBytes(ByteString value)

public SSLCertificate.Extension.Builder setExtendedKeyUsageBytes(ByteString value)

One or more purposes for which the certified public key may be used, in addition to or in place of the basic purposes indicated in the key usage extension field.

string extended_key_usage = 9;

Parameter
Name Description
value ByteString

The bytes for extendedKeyUsage to set.

Returns
Type Description
SSLCertificate.Extension.Builder

This builder for chaining.

setKeyUsage(String value)

public SSLCertificate.Extension.Builder setKeyUsage(String value)

The purpose for which the certified public key is used.

string key_usage = 6;

Parameter
Name Description
value String

The keyUsage to set.

Returns
Type Description
SSLCertificate.Extension.Builder

This builder for chaining.

setKeyUsageBytes(ByteString value)

public SSLCertificate.Extension.Builder setKeyUsageBytes(ByteString value)

The purpose for which the certified public key is used.

string key_usage = 6;

Parameter
Name Description
value ByteString

The bytes for keyUsage to set.

Returns
Type Description
SSLCertificate.Extension.Builder

This builder for chaining.

setNetscapeCertComment(String value)

public SSLCertificate.Extension.Builder setNetscapeCertComment(String value)

Used to include free-form text comments inside certificates.

string netscape_cert_comment = 12;

Parameter
Name Description
value String

The netscapeCertComment to set.

Returns
Type Description
SSLCertificate.Extension.Builder

This builder for chaining.

setNetscapeCertCommentBytes(ByteString value)

public SSLCertificate.Extension.Builder setNetscapeCertCommentBytes(ByteString value)

Used to include free-form text comments inside certificates.

string netscape_cert_comment = 12;

Parameter
Name Description
value ByteString

The bytes for netscapeCertComment to set.

Returns
Type Description
SSLCertificate.Extension.Builder

This builder for chaining.

setNetscapeCertificate(boolean value)

public SSLCertificate.Extension.Builder setNetscapeCertificate(boolean value)

Identify whether the certificate subject is an SSL client, an SSL server, or a CA.

bool netscape_certificate = 14;

Parameter
Name Description
value boolean

The netscapeCertificate to set.

Returns
Type Description
SSLCertificate.Extension.Builder

This builder for chaining.

setOldAuthorityKeyId(boolean value)

public SSLCertificate.Extension.Builder setOldAuthorityKeyId(boolean value)

Whether the certificate has an old authority key identifier extension.

bool old_authority_key_id = 16;

Parameter
Name Description
value boolean

The oldAuthorityKeyId to set.

Returns
Type Description
SSLCertificate.Extension.Builder

This builder for chaining.

setPeLogotype(boolean value)

public SSLCertificate.Extension.Builder setPeLogotype(boolean value)

Whether the certificate includes a logotype.

bool pe_logotype = 15;

Parameter
Name Description
value boolean

The peLogotype to set.

Returns
Type Description
SSLCertificate.Extension.Builder

This builder for chaining.

setSubjectAlternativeName(String value)

public SSLCertificate.Extension.Builder setSubjectAlternativeName(String value)

Contains one or more alternative names, using any of a variety of name forms, for the entity that is bound by the CA to the certified public key.

string subject_alternative_name = 10;

Parameter
Name Description
value String

The subjectAlternativeName to set.

Returns
Type Description
SSLCertificate.Extension.Builder

This builder for chaining.

setSubjectAlternativeNameBytes(ByteString value)

public SSLCertificate.Extension.Builder setSubjectAlternativeNameBytes(ByteString value)

Contains one or more alternative names, using any of a variety of name forms, for the entity that is bound by the CA to the certified public key.

string subject_alternative_name = 10;

Parameter
Name Description
value ByteString

The bytes for subjectAlternativeName to set.

Returns
Type Description
SSLCertificate.Extension.Builder

This builder for chaining.

setSubjectKeyId(String value)

public SSLCertificate.Extension.Builder setSubjectKeyId(String value)

Identifies the public key being certified.

string subject_key_id = 2;

Parameter
Name Description
value String

The subjectKeyId to set.

Returns
Type Description
SSLCertificate.Extension.Builder

This builder for chaining.

setSubjectKeyIdBytes(ByteString value)

public SSLCertificate.Extension.Builder setSubjectKeyIdBytes(ByteString value)

Identifies the public key being certified.

string subject_key_id = 2;

Parameter
Name Description
value ByteString

The bytes for subjectKeyId to set.

Returns
Type Description
SSLCertificate.Extension.Builder

This builder for chaining.