Class SigningConfig.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, SigningConfigOrBuilder, java.lang.Cloneable
    Enclosing class:
    SigningConfig

    public static final class SigningConfig.Builder
    extends com.google.protobuf.GeneratedMessage.Builder<SigningConfig.Builder>
    implements SigningConfigOrBuilder
     SigningConfig represents the trusted entities/state needed by Sigstore
     signing. In particular, it primarily contains service URLs that a Sigstore
     signer may need to connect to for the online aspects of signing.
     
    Protobuf type dev.sigstore.trustroot.v1.SigningConfig
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      SigningConfig.Builder addAllTlogUrls​(java.lang.Iterable<java.lang.String> values)
      One or more URLs to Rekor-compatible transparency log.
      SigningConfig.Builder addAllTsaUrls​(java.lang.Iterable<java.lang.String> values)
      One ore more URLs to RFC 3161 Time Stamping Authority (TSA).
      SigningConfig.Builder addTlogUrls​(java.lang.String value)
      One or more URLs to Rekor-compatible transparency log.
      SigningConfig.Builder addTlogUrlsBytes​(com.google.protobuf.ByteString value)
      One or more URLs to Rekor-compatible transparency log.
      SigningConfig.Builder addTsaUrls​(java.lang.String value)
      One ore more URLs to RFC 3161 Time Stamping Authority (TSA).
      SigningConfig.Builder addTsaUrlsBytes​(com.google.protobuf.ByteString value)
      One ore more URLs to RFC 3161 Time Stamping Authority (TSA).
      SigningConfig build()  
      SigningConfig buildPartial()  
      SigningConfig.Builder clear()  
      SigningConfig.Builder clearCaUrl()
      A URL to a Fulcio-compatible CA, capable of receiving Certificate Signing Requests (CSRs) and responding with issued certificates.
      SigningConfig.Builder clearOidcUrl()
      A URL to an OpenID Connect identity provider.
      SigningConfig.Builder clearTlogUrls()
      One or more URLs to Rekor-compatible transparency log.
      SigningConfig.Builder clearTsaUrls()
      One ore more URLs to RFC 3161 Time Stamping Authority (TSA).
      java.lang.String getCaUrl()
      A URL to a Fulcio-compatible CA, capable of receiving Certificate Signing Requests (CSRs) and responding with issued certificates.
      com.google.protobuf.ByteString getCaUrlBytes()
      A URL to a Fulcio-compatible CA, capable of receiving Certificate Signing Requests (CSRs) and responding with issued certificates.
      SigningConfig getDefaultInstanceForType()  
      static com.google.protobuf.Descriptors.Descriptor getDescriptor()  
      com.google.protobuf.Descriptors.Descriptor getDescriptorForType()  
      java.lang.String getOidcUrl()
      A URL to an OpenID Connect identity provider.
      com.google.protobuf.ByteString getOidcUrlBytes()
      A URL to an OpenID Connect identity provider.
      java.lang.String getTlogUrls​(int index)
      One or more URLs to Rekor-compatible transparency log.
      com.google.protobuf.ByteString getTlogUrlsBytes​(int index)
      One or more URLs to Rekor-compatible transparency log.
      int getTlogUrlsCount()
      One or more URLs to Rekor-compatible transparency log.
      com.google.protobuf.ProtocolStringList getTlogUrlsList()
      One or more URLs to Rekor-compatible transparency log.
      java.lang.String getTsaUrls​(int index)
      One ore more URLs to RFC 3161 Time Stamping Authority (TSA).
      com.google.protobuf.ByteString getTsaUrlsBytes​(int index)
      One ore more URLs to RFC 3161 Time Stamping Authority (TSA).
      int getTsaUrlsCount()
      One ore more URLs to RFC 3161 Time Stamping Authority (TSA).
      com.google.protobuf.ProtocolStringList getTsaUrlsList()
      One ore more URLs to RFC 3161 Time Stamping Authority (TSA).
      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()  
      boolean isInitialized()  
      SigningConfig.Builder mergeFrom​(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      SigningConfig.Builder mergeFrom​(com.google.protobuf.Message other)  
      SigningConfig.Builder mergeFrom​(SigningConfig other)  
      SigningConfig.Builder setCaUrl​(java.lang.String value)
      A URL to a Fulcio-compatible CA, capable of receiving Certificate Signing Requests (CSRs) and responding with issued certificates.
      SigningConfig.Builder setCaUrlBytes​(com.google.protobuf.ByteString value)
      A URL to a Fulcio-compatible CA, capable of receiving Certificate Signing Requests (CSRs) and responding with issued certificates.
      SigningConfig.Builder setOidcUrl​(java.lang.String value)
      A URL to an OpenID Connect identity provider.
      SigningConfig.Builder setOidcUrlBytes​(com.google.protobuf.ByteString value)
      A URL to an OpenID Connect identity provider.
      SigningConfig.Builder setTlogUrls​(int index, java.lang.String value)
      One or more URLs to Rekor-compatible transparency log.
      SigningConfig.Builder setTsaUrls​(int index, java.lang.String value)
      One ore more URLs to RFC 3161 Time Stamping Authority (TSA).
      • 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
      • Methods inherited from interface com.google.protobuf.Message.Builder

        mergeDelimitedFrom, mergeDelimitedFrom
      • Methods inherited from interface com.google.protobuf.MessageLite.Builder

        mergeFrom
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<SigningConfig.Builder>
      • clear

        public SigningConfig.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessage.Builder<SigningConfig.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<SigningConfig.Builder>
      • getDefaultInstanceForType

        public SigningConfig getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public SigningConfig build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public SigningConfig buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • mergeFrom

        public SigningConfig.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SigningConfig.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessage.Builder<SigningConfig.Builder>
      • mergeFrom

        public SigningConfig.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                        throws java.io.IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SigningConfig.Builder>
        Throws:
        java.io.IOException
      • getCaUrl

        public java.lang.String getCaUrl()
         A URL to a Fulcio-compatible CA, capable of receiving
         Certificate Signing Requests (CSRs) and responding with
         issued certificates.
        
         This URL **MUST** be the "base" URL for the CA, which clients
         should construct an appropriate CSR endpoint on top of.
         For example, if `ca_url` is `https://example.com/ca`, then
         the client **MAY** construct the CSR endpoint as
         `https://example.com/ca/api/v2/signingCert`.
         
        string ca_url = 1;
        Specified by:
        getCaUrl in interface SigningConfigOrBuilder
        Returns:
        The caUrl.
      • getCaUrlBytes

        public com.google.protobuf.ByteString getCaUrlBytes()
         A URL to a Fulcio-compatible CA, capable of receiving
         Certificate Signing Requests (CSRs) and responding with
         issued certificates.
        
         This URL **MUST** be the "base" URL for the CA, which clients
         should construct an appropriate CSR endpoint on top of.
         For example, if `ca_url` is `https://example.com/ca`, then
         the client **MAY** construct the CSR endpoint as
         `https://example.com/ca/api/v2/signingCert`.
         
        string ca_url = 1;
        Specified by:
        getCaUrlBytes in interface SigningConfigOrBuilder
        Returns:
        The bytes for caUrl.
      • setCaUrl

        public SigningConfig.Builder setCaUrl​(java.lang.String value)
         A URL to a Fulcio-compatible CA, capable of receiving
         Certificate Signing Requests (CSRs) and responding with
         issued certificates.
        
         This URL **MUST** be the "base" URL for the CA, which clients
         should construct an appropriate CSR endpoint on top of.
         For example, if `ca_url` is `https://example.com/ca`, then
         the client **MAY** construct the CSR endpoint as
         `https://example.com/ca/api/v2/signingCert`.
         
        string ca_url = 1;
        Parameters:
        value - The caUrl to set.
        Returns:
        This builder for chaining.
      • clearCaUrl

        public SigningConfig.Builder clearCaUrl()
         A URL to a Fulcio-compatible CA, capable of receiving
         Certificate Signing Requests (CSRs) and responding with
         issued certificates.
        
         This URL **MUST** be the "base" URL for the CA, which clients
         should construct an appropriate CSR endpoint on top of.
         For example, if `ca_url` is `https://example.com/ca`, then
         the client **MAY** construct the CSR endpoint as
         `https://example.com/ca/api/v2/signingCert`.
         
        string ca_url = 1;
        Returns:
        This builder for chaining.
      • setCaUrlBytes

        public SigningConfig.Builder setCaUrlBytes​(com.google.protobuf.ByteString value)
         A URL to a Fulcio-compatible CA, capable of receiving
         Certificate Signing Requests (CSRs) and responding with
         issued certificates.
        
         This URL **MUST** be the "base" URL for the CA, which clients
         should construct an appropriate CSR endpoint on top of.
         For example, if `ca_url` is `https://example.com/ca`, then
         the client **MAY** construct the CSR endpoint as
         `https://example.com/ca/api/v2/signingCert`.
         
        string ca_url = 1;
        Parameters:
        value - The bytes for caUrl to set.
        Returns:
        This builder for chaining.
      • getOidcUrl

        public java.lang.String getOidcUrl()
         A URL to an OpenID Connect identity provider.
        
         This URL **MUST** be the "base" URL for the OIDC IdP, which clients
         should perform well-known OpenID Connect discovery against.
         
        string oidc_url = 2;
        Specified by:
        getOidcUrl in interface SigningConfigOrBuilder
        Returns:
        The oidcUrl.
      • getOidcUrlBytes

        public com.google.protobuf.ByteString getOidcUrlBytes()
         A URL to an OpenID Connect identity provider.
        
         This URL **MUST** be the "base" URL for the OIDC IdP, which clients
         should perform well-known OpenID Connect discovery against.
         
        string oidc_url = 2;
        Specified by:
        getOidcUrlBytes in interface SigningConfigOrBuilder
        Returns:
        The bytes for oidcUrl.
      • setOidcUrl

        public SigningConfig.Builder setOidcUrl​(java.lang.String value)
         A URL to an OpenID Connect identity provider.
        
         This URL **MUST** be the "base" URL for the OIDC IdP, which clients
         should perform well-known OpenID Connect discovery against.
         
        string oidc_url = 2;
        Parameters:
        value - The oidcUrl to set.
        Returns:
        This builder for chaining.
      • clearOidcUrl

        public SigningConfig.Builder clearOidcUrl()
         A URL to an OpenID Connect identity provider.
        
         This URL **MUST** be the "base" URL for the OIDC IdP, which clients
         should perform well-known OpenID Connect discovery against.
         
        string oidc_url = 2;
        Returns:
        This builder for chaining.
      • setOidcUrlBytes

        public SigningConfig.Builder setOidcUrlBytes​(com.google.protobuf.ByteString value)
         A URL to an OpenID Connect identity provider.
        
         This URL **MUST** be the "base" URL for the OIDC IdP, which clients
         should perform well-known OpenID Connect discovery against.
         
        string oidc_url = 2;
        Parameters:
        value - The bytes for oidcUrl to set.
        Returns:
        This builder for chaining.
      • getTlogUrlsList

        public com.google.protobuf.ProtocolStringList getTlogUrlsList()
         One or more URLs to Rekor-compatible transparency log.
        
         Each URL **MUST** be the "base" URL for the transparency log,
         which clients should construct appropriate API endpoints on top of.
         
        repeated string tlog_urls = 3;
        Specified by:
        getTlogUrlsList in interface SigningConfigOrBuilder
        Returns:
        A list containing the tlogUrls.
      • getTlogUrlsCount

        public int getTlogUrlsCount()
         One or more URLs to Rekor-compatible transparency log.
        
         Each URL **MUST** be the "base" URL for the transparency log,
         which clients should construct appropriate API endpoints on top of.
         
        repeated string tlog_urls = 3;
        Specified by:
        getTlogUrlsCount in interface SigningConfigOrBuilder
        Returns:
        The count of tlogUrls.
      • getTlogUrls

        public java.lang.String getTlogUrls​(int index)
         One or more URLs to Rekor-compatible transparency log.
        
         Each URL **MUST** be the "base" URL for the transparency log,
         which clients should construct appropriate API endpoints on top of.
         
        repeated string tlog_urls = 3;
        Specified by:
        getTlogUrls in interface SigningConfigOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The tlogUrls at the given index.
      • getTlogUrlsBytes

        public com.google.protobuf.ByteString getTlogUrlsBytes​(int index)
         One or more URLs to Rekor-compatible transparency log.
        
         Each URL **MUST** be the "base" URL for the transparency log,
         which clients should construct appropriate API endpoints on top of.
         
        repeated string tlog_urls = 3;
        Specified by:
        getTlogUrlsBytes in interface SigningConfigOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the tlogUrls at the given index.
      • setTlogUrls

        public SigningConfig.Builder setTlogUrls​(int index,
                                                 java.lang.String value)
         One or more URLs to Rekor-compatible transparency log.
        
         Each URL **MUST** be the "base" URL for the transparency log,
         which clients should construct appropriate API endpoints on top of.
         
        repeated string tlog_urls = 3;
        Parameters:
        index - The index to set the value at.
        value - The tlogUrls to set.
        Returns:
        This builder for chaining.
      • addTlogUrls

        public SigningConfig.Builder addTlogUrls​(java.lang.String value)
         One or more URLs to Rekor-compatible transparency log.
        
         Each URL **MUST** be the "base" URL for the transparency log,
         which clients should construct appropriate API endpoints on top of.
         
        repeated string tlog_urls = 3;
        Parameters:
        value - The tlogUrls to add.
        Returns:
        This builder for chaining.
      • addAllTlogUrls

        public SigningConfig.Builder addAllTlogUrls​(java.lang.Iterable<java.lang.String> values)
         One or more URLs to Rekor-compatible transparency log.
        
         Each URL **MUST** be the "base" URL for the transparency log,
         which clients should construct appropriate API endpoints on top of.
         
        repeated string tlog_urls = 3;
        Parameters:
        values - The tlogUrls to add.
        Returns:
        This builder for chaining.
      • clearTlogUrls

        public SigningConfig.Builder clearTlogUrls()
         One or more URLs to Rekor-compatible transparency log.
        
         Each URL **MUST** be the "base" URL for the transparency log,
         which clients should construct appropriate API endpoints on top of.
         
        repeated string tlog_urls = 3;
        Returns:
        This builder for chaining.
      • addTlogUrlsBytes

        public SigningConfig.Builder addTlogUrlsBytes​(com.google.protobuf.ByteString value)
         One or more URLs to Rekor-compatible transparency log.
        
         Each URL **MUST** be the "base" URL for the transparency log,
         which clients should construct appropriate API endpoints on top of.
         
        repeated string tlog_urls = 3;
        Parameters:
        value - The bytes of the tlogUrls to add.
        Returns:
        This builder for chaining.
      • getTsaUrlsList

        public com.google.protobuf.ProtocolStringList getTsaUrlsList()
         One ore more URLs to RFC 3161 Time Stamping Authority (TSA).
        
         Each URL **MUST** be the **full** URL for the TSA, meaning that it
         should be suitable for submitting Time Stamp Requests (TSRs) to
         via HTTP, per RFC 3161.
         
        repeated string tsa_urls = 4;
        Specified by:
        getTsaUrlsList in interface SigningConfigOrBuilder
        Returns:
        A list containing the tsaUrls.
      • getTsaUrlsCount

        public int getTsaUrlsCount()
         One ore more URLs to RFC 3161 Time Stamping Authority (TSA).
        
         Each URL **MUST** be the **full** URL for the TSA, meaning that it
         should be suitable for submitting Time Stamp Requests (TSRs) to
         via HTTP, per RFC 3161.
         
        repeated string tsa_urls = 4;
        Specified by:
        getTsaUrlsCount in interface SigningConfigOrBuilder
        Returns:
        The count of tsaUrls.
      • getTsaUrls

        public java.lang.String getTsaUrls​(int index)
         One ore more URLs to RFC 3161 Time Stamping Authority (TSA).
        
         Each URL **MUST** be the **full** URL for the TSA, meaning that it
         should be suitable for submitting Time Stamp Requests (TSRs) to
         via HTTP, per RFC 3161.
         
        repeated string tsa_urls = 4;
        Specified by:
        getTsaUrls in interface SigningConfigOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The tsaUrls at the given index.
      • getTsaUrlsBytes

        public com.google.protobuf.ByteString getTsaUrlsBytes​(int index)
         One ore more URLs to RFC 3161 Time Stamping Authority (TSA).
        
         Each URL **MUST** be the **full** URL for the TSA, meaning that it
         should be suitable for submitting Time Stamp Requests (TSRs) to
         via HTTP, per RFC 3161.
         
        repeated string tsa_urls = 4;
        Specified by:
        getTsaUrlsBytes in interface SigningConfigOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the tsaUrls at the given index.
      • setTsaUrls

        public SigningConfig.Builder setTsaUrls​(int index,
                                                java.lang.String value)
         One ore more URLs to RFC 3161 Time Stamping Authority (TSA).
        
         Each URL **MUST** be the **full** URL for the TSA, meaning that it
         should be suitable for submitting Time Stamp Requests (TSRs) to
         via HTTP, per RFC 3161.
         
        repeated string tsa_urls = 4;
        Parameters:
        index - The index to set the value at.
        value - The tsaUrls to set.
        Returns:
        This builder for chaining.
      • addTsaUrls

        public SigningConfig.Builder addTsaUrls​(java.lang.String value)
         One ore more URLs to RFC 3161 Time Stamping Authority (TSA).
        
         Each URL **MUST** be the **full** URL for the TSA, meaning that it
         should be suitable for submitting Time Stamp Requests (TSRs) to
         via HTTP, per RFC 3161.
         
        repeated string tsa_urls = 4;
        Parameters:
        value - The tsaUrls to add.
        Returns:
        This builder for chaining.
      • addAllTsaUrls

        public SigningConfig.Builder addAllTsaUrls​(java.lang.Iterable<java.lang.String> values)
         One ore more URLs to RFC 3161 Time Stamping Authority (TSA).
        
         Each URL **MUST** be the **full** URL for the TSA, meaning that it
         should be suitable for submitting Time Stamp Requests (TSRs) to
         via HTTP, per RFC 3161.
         
        repeated string tsa_urls = 4;
        Parameters:
        values - The tsaUrls to add.
        Returns:
        This builder for chaining.
      • clearTsaUrls

        public SigningConfig.Builder clearTsaUrls()
         One ore more URLs to RFC 3161 Time Stamping Authority (TSA).
        
         Each URL **MUST** be the **full** URL for the TSA, meaning that it
         should be suitable for submitting Time Stamp Requests (TSRs) to
         via HTTP, per RFC 3161.
         
        repeated string tsa_urls = 4;
        Returns:
        This builder for chaining.
      • addTsaUrlsBytes

        public SigningConfig.Builder addTsaUrlsBytes​(com.google.protobuf.ByteString value)
         One ore more URLs to RFC 3161 Time Stamping Authority (TSA).
        
         Each URL **MUST** be the **full** URL for the TSA, meaning that it
         should be suitable for submitting Time Stamp Requests (TSRs) to
         via HTTP, per RFC 3161.
         
        repeated string tsa_urls = 4;
        Parameters:
        value - The bytes of the tsaUrls to add.
        Returns:
        This builder for chaining.