Package dev.sigstore.proto.trustroot.v1
Class CertificateAuthority.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.Builder<CertificateAuthority.Builder>
-
- dev.sigstore.proto.trustroot.v1.CertificateAuthority.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,CertificateAuthorityOrBuilder,java.lang.Cloneable
- Enclosing class:
- CertificateAuthority
public static final class CertificateAuthority.Builder extends com.google.protobuf.GeneratedMessage.Builder<CertificateAuthority.Builder> implements CertificateAuthorityOrBuilder
CertificateAuthority enlists the information required to identify which CA to use and perform signature verification.
Protobuf typedev.sigstore.trustroot.v1.CertificateAuthority
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CertificateAuthoritybuild()CertificateAuthoritybuildPartial()CertificateAuthority.Builderclear()CertificateAuthority.BuilderclearCertChain()The certificate chain for this CA.CertificateAuthority.BuilderclearSubject()The root certificate MUST be self-signed, and so the subject and issuer are the same.CertificateAuthority.BuilderclearUri()The URI identifies the certificate authority.CertificateAuthority.BuilderclearValidFor()The time the *entire* chain was valid.X509CertificateChaingetCertChain()The certificate chain for this CA.X509CertificateChain.BuildergetCertChainBuilder()The certificate chain for this CA.X509CertificateChainOrBuildergetCertChainOrBuilder()The certificate chain for this CA.CertificateAuthoritygetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()DistinguishedNamegetSubject()The root certificate MUST be self-signed, and so the subject and issuer are the same.DistinguishedName.BuildergetSubjectBuilder()The root certificate MUST be self-signed, and so the subject and issuer are the same.DistinguishedNameOrBuildergetSubjectOrBuilder()The root certificate MUST be self-signed, and so the subject and issuer are the same.java.lang.StringgetUri()The URI identifies the certificate authority.com.google.protobuf.ByteStringgetUriBytes()The URI identifies the certificate authority.TimeRangegetValidFor()The time the *entire* chain was valid.TimeRange.BuildergetValidForBuilder()The time the *entire* chain was valid.TimeRangeOrBuildergetValidForOrBuilder()The time the *entire* chain was valid.booleanhasCertChain()The certificate chain for this CA.booleanhasSubject()The root certificate MUST be self-signed, and so the subject and issuer are the same.booleanhasValidFor()The time the *entire* chain was valid.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()CertificateAuthority.BuildermergeCertChain(X509CertificateChain value)The certificate chain for this CA.CertificateAuthority.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)CertificateAuthority.BuildermergeFrom(com.google.protobuf.Message other)CertificateAuthority.BuildermergeFrom(CertificateAuthority other)CertificateAuthority.BuildermergeSubject(DistinguishedName value)The root certificate MUST be self-signed, and so the subject and issuer are the same.CertificateAuthority.BuildermergeValidFor(TimeRange value)The time the *entire* chain was valid.CertificateAuthority.BuildersetCertChain(X509CertificateChain value)The certificate chain for this CA.CertificateAuthority.BuildersetCertChain(X509CertificateChain.Builder builderForValue)The certificate chain for this CA.CertificateAuthority.BuildersetSubject(DistinguishedName value)The root certificate MUST be self-signed, and so the subject and issuer are the same.CertificateAuthority.BuildersetSubject(DistinguishedName.Builder builderForValue)The root certificate MUST be self-signed, and so the subject and issuer are the same.CertificateAuthority.BuildersetUri(java.lang.String value)The URI identifies the certificate authority.CertificateAuthority.BuildersetUriBytes(com.google.protobuf.ByteString value)The URI identifies the certificate authority.CertificateAuthority.BuildersetValidFor(TimeRange value)The time the *entire* chain was valid.CertificateAuthority.BuildersetValidFor(TimeRange.Builder builderForValue)The time the *entire* chain was valid.-
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<CertificateAuthority.Builder>
-
clear
public CertificateAuthority.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<CertificateAuthority.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<CertificateAuthority.Builder>
-
getDefaultInstanceForType
public CertificateAuthority getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public CertificateAuthority build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CertificateAuthority buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public CertificateAuthority.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CertificateAuthority.Builder>
-
mergeFrom
public CertificateAuthority.Builder mergeFrom(CertificateAuthority other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<CertificateAuthority.Builder>
-
mergeFrom
public CertificateAuthority.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CertificateAuthority.Builder>- Throws:
java.io.IOException
-
hasSubject
public boolean hasSubject()
The root certificate MUST be self-signed, and so the subject and issuer are the same.
.dev.sigstore.common.v1.DistinguishedName subject = 1;- Specified by:
hasSubjectin interfaceCertificateAuthorityOrBuilder- Returns:
- Whether the subject field is set.
-
getSubject
public DistinguishedName getSubject()
The root certificate MUST be self-signed, and so the subject and issuer are the same.
.dev.sigstore.common.v1.DistinguishedName subject = 1;- Specified by:
getSubjectin interfaceCertificateAuthorityOrBuilder- Returns:
- The subject.
-
setSubject
public CertificateAuthority.Builder setSubject(DistinguishedName value)
The root certificate MUST be self-signed, and so the subject and issuer are the same.
.dev.sigstore.common.v1.DistinguishedName subject = 1;
-
setSubject
public CertificateAuthority.Builder setSubject(DistinguishedName.Builder builderForValue)
The root certificate MUST be self-signed, and so the subject and issuer are the same.
.dev.sigstore.common.v1.DistinguishedName subject = 1;
-
mergeSubject
public CertificateAuthority.Builder mergeSubject(DistinguishedName value)
The root certificate MUST be self-signed, and so the subject and issuer are the same.
.dev.sigstore.common.v1.DistinguishedName subject = 1;
-
clearSubject
public CertificateAuthority.Builder clearSubject()
The root certificate MUST be self-signed, and so the subject and issuer are the same.
.dev.sigstore.common.v1.DistinguishedName subject = 1;
-
getSubjectBuilder
public DistinguishedName.Builder getSubjectBuilder()
The root certificate MUST be self-signed, and so the subject and issuer are the same.
.dev.sigstore.common.v1.DistinguishedName subject = 1;
-
getSubjectOrBuilder
public DistinguishedNameOrBuilder getSubjectOrBuilder()
The root certificate MUST be self-signed, and so the subject and issuer are the same.
.dev.sigstore.common.v1.DistinguishedName subject = 1;- Specified by:
getSubjectOrBuilderin interfaceCertificateAuthorityOrBuilder
-
getUri
public java.lang.String getUri()
The URI identifies the certificate authority. It is RECOMMENDED that the URI is the base URL for the certificate authority, that can be provided to any SDK/client provided by the certificate authority to interact with the certificate authority.
string uri = 2;- Specified by:
getUriin interfaceCertificateAuthorityOrBuilder- Returns:
- The uri.
-
getUriBytes
public com.google.protobuf.ByteString getUriBytes()
The URI identifies the certificate authority. It is RECOMMENDED that the URI is the base URL for the certificate authority, that can be provided to any SDK/client provided by the certificate authority to interact with the certificate authority.
string uri = 2;- Specified by:
getUriBytesin interfaceCertificateAuthorityOrBuilder- Returns:
- The bytes for uri.
-
setUri
public CertificateAuthority.Builder setUri(java.lang.String value)
The URI identifies the certificate authority. It is RECOMMENDED that the URI is the base URL for the certificate authority, that can be provided to any SDK/client provided by the certificate authority to interact with the certificate authority.
string uri = 2;- Parameters:
value- The uri to set.- Returns:
- This builder for chaining.
-
clearUri
public CertificateAuthority.Builder clearUri()
The URI identifies the certificate authority. It is RECOMMENDED that the URI is the base URL for the certificate authority, that can be provided to any SDK/client provided by the certificate authority to interact with the certificate authority.
string uri = 2;- Returns:
- This builder for chaining.
-
setUriBytes
public CertificateAuthority.Builder setUriBytes(com.google.protobuf.ByteString value)
The URI identifies the certificate authority. It is RECOMMENDED that the URI is the base URL for the certificate authority, that can be provided to any SDK/client provided by the certificate authority to interact with the certificate authority.
string uri = 2;- Parameters:
value- The bytes for uri to set.- Returns:
- This builder for chaining.
-
hasCertChain
public boolean hasCertChain()
The certificate chain for this CA. The last certificate in the chain MUST be the trust anchor. The trust anchor MAY be a self-signed root CA certificate or MAY be an intermediate CA certificate.
.dev.sigstore.common.v1.X509CertificateChain cert_chain = 3;- Specified by:
hasCertChainin interfaceCertificateAuthorityOrBuilder- Returns:
- Whether the certChain field is set.
-
getCertChain
public X509CertificateChain getCertChain()
The certificate chain for this CA. The last certificate in the chain MUST be the trust anchor. The trust anchor MAY be a self-signed root CA certificate or MAY be an intermediate CA certificate.
.dev.sigstore.common.v1.X509CertificateChain cert_chain = 3;- Specified by:
getCertChainin interfaceCertificateAuthorityOrBuilder- Returns:
- The certChain.
-
setCertChain
public CertificateAuthority.Builder setCertChain(X509CertificateChain value)
The certificate chain for this CA. The last certificate in the chain MUST be the trust anchor. The trust anchor MAY be a self-signed root CA certificate or MAY be an intermediate CA certificate.
.dev.sigstore.common.v1.X509CertificateChain cert_chain = 3;
-
setCertChain
public CertificateAuthority.Builder setCertChain(X509CertificateChain.Builder builderForValue)
The certificate chain for this CA. The last certificate in the chain MUST be the trust anchor. The trust anchor MAY be a self-signed root CA certificate or MAY be an intermediate CA certificate.
.dev.sigstore.common.v1.X509CertificateChain cert_chain = 3;
-
mergeCertChain
public CertificateAuthority.Builder mergeCertChain(X509CertificateChain value)
The certificate chain for this CA. The last certificate in the chain MUST be the trust anchor. The trust anchor MAY be a self-signed root CA certificate or MAY be an intermediate CA certificate.
.dev.sigstore.common.v1.X509CertificateChain cert_chain = 3;
-
clearCertChain
public CertificateAuthority.Builder clearCertChain()
The certificate chain for this CA. The last certificate in the chain MUST be the trust anchor. The trust anchor MAY be a self-signed root CA certificate or MAY be an intermediate CA certificate.
.dev.sigstore.common.v1.X509CertificateChain cert_chain = 3;
-
getCertChainBuilder
public X509CertificateChain.Builder getCertChainBuilder()
The certificate chain for this CA. The last certificate in the chain MUST be the trust anchor. The trust anchor MAY be a self-signed root CA certificate or MAY be an intermediate CA certificate.
.dev.sigstore.common.v1.X509CertificateChain cert_chain = 3;
-
getCertChainOrBuilder
public X509CertificateChainOrBuilder getCertChainOrBuilder()
The certificate chain for this CA. The last certificate in the chain MUST be the trust anchor. The trust anchor MAY be a self-signed root CA certificate or MAY be an intermediate CA certificate.
.dev.sigstore.common.v1.X509CertificateChain cert_chain = 3;- Specified by:
getCertChainOrBuilderin interfaceCertificateAuthorityOrBuilder
-
hasValidFor
public boolean hasValidFor()
The time the *entire* chain was valid. This is at max the longest interval when *all* certificates in the chain were valid, but it MAY be shorter. Clients MUST check timestamps against *both* the `valid_for` time range *and* the entire certificate chain. The TimeRange should be considered valid *inclusive* of the endpoints.
.dev.sigstore.common.v1.TimeRange valid_for = 4;- Specified by:
hasValidForin interfaceCertificateAuthorityOrBuilder- Returns:
- Whether the validFor field is set.
-
getValidFor
public TimeRange getValidFor()
The time the *entire* chain was valid. This is at max the longest interval when *all* certificates in the chain were valid, but it MAY be shorter. Clients MUST check timestamps against *both* the `valid_for` time range *and* the entire certificate chain. The TimeRange should be considered valid *inclusive* of the endpoints.
.dev.sigstore.common.v1.TimeRange valid_for = 4;- Specified by:
getValidForin interfaceCertificateAuthorityOrBuilder- Returns:
- The validFor.
-
setValidFor
public CertificateAuthority.Builder setValidFor(TimeRange value)
The time the *entire* chain was valid. This is at max the longest interval when *all* certificates in the chain were valid, but it MAY be shorter. Clients MUST check timestamps against *both* the `valid_for` time range *and* the entire certificate chain. The TimeRange should be considered valid *inclusive* of the endpoints.
.dev.sigstore.common.v1.TimeRange valid_for = 4;
-
setValidFor
public CertificateAuthority.Builder setValidFor(TimeRange.Builder builderForValue)
The time the *entire* chain was valid. This is at max the longest interval when *all* certificates in the chain were valid, but it MAY be shorter. Clients MUST check timestamps against *both* the `valid_for` time range *and* the entire certificate chain. The TimeRange should be considered valid *inclusive* of the endpoints.
.dev.sigstore.common.v1.TimeRange valid_for = 4;
-
mergeValidFor
public CertificateAuthority.Builder mergeValidFor(TimeRange value)
The time the *entire* chain was valid. This is at max the longest interval when *all* certificates in the chain were valid, but it MAY be shorter. Clients MUST check timestamps against *both* the `valid_for` time range *and* the entire certificate chain. The TimeRange should be considered valid *inclusive* of the endpoints.
.dev.sigstore.common.v1.TimeRange valid_for = 4;
-
clearValidFor
public CertificateAuthority.Builder clearValidFor()
The time the *entire* chain was valid. This is at max the longest interval when *all* certificates in the chain were valid, but it MAY be shorter. Clients MUST check timestamps against *both* the `valid_for` time range *and* the entire certificate chain. The TimeRange should be considered valid *inclusive* of the endpoints.
.dev.sigstore.common.v1.TimeRange valid_for = 4;
-
getValidForBuilder
public TimeRange.Builder getValidForBuilder()
The time the *entire* chain was valid. This is at max the longest interval when *all* certificates in the chain were valid, but it MAY be shorter. Clients MUST check timestamps against *both* the `valid_for` time range *and* the entire certificate chain. The TimeRange should be considered valid *inclusive* of the endpoints.
.dev.sigstore.common.v1.TimeRange valid_for = 4;
-
getValidForOrBuilder
public TimeRangeOrBuilder getValidForOrBuilder()
The time the *entire* chain was valid. This is at max the longest interval when *all* certificates in the chain were valid, but it MAY be shorter. Clients MUST check timestamps against *both* the `valid_for` time range *and* the entire certificate chain. The TimeRange should be considered valid *inclusive* of the endpoints.
.dev.sigstore.common.v1.TimeRange valid_for = 4;- Specified by:
getValidForOrBuilderin interfaceCertificateAuthorityOrBuilder
-
-