Package dev.sigstore.proto.trustroot.v1
Class SigningConfig.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.Builder<SigningConfig.Builder>
-
- dev.sigstore.proto.trustroot.v1.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 typedev.sigstore.trustroot.v1.SigningConfig
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SigningConfig.BuilderaddAllTlogUrls(java.lang.Iterable<java.lang.String> values)One or more URLs to Rekor-compatible transparency log.SigningConfig.BuilderaddAllTsaUrls(java.lang.Iterable<java.lang.String> values)One ore more URLs to RFC 3161 Time Stamping Authority (TSA).SigningConfig.BuilderaddTlogUrls(java.lang.String value)One or more URLs to Rekor-compatible transparency log.SigningConfig.BuilderaddTlogUrlsBytes(com.google.protobuf.ByteString value)One or more URLs to Rekor-compatible transparency log.SigningConfig.BuilderaddTsaUrls(java.lang.String value)One ore more URLs to RFC 3161 Time Stamping Authority (TSA).SigningConfig.BuilderaddTsaUrlsBytes(com.google.protobuf.ByteString value)One ore more URLs to RFC 3161 Time Stamping Authority (TSA).SigningConfigbuild()SigningConfigbuildPartial()SigningConfig.Builderclear()SigningConfig.BuilderclearCaUrl()A URL to a Fulcio-compatible CA, capable of receiving Certificate Signing Requests (CSRs) and responding with issued certificates.SigningConfig.BuilderclearOidcUrl()A URL to an OpenID Connect identity provider.SigningConfig.BuilderclearTlogUrls()One or more URLs to Rekor-compatible transparency log.SigningConfig.BuilderclearTsaUrls()One ore more URLs to RFC 3161 Time Stamping Authority (TSA).java.lang.StringgetCaUrl()A URL to a Fulcio-compatible CA, capable of receiving Certificate Signing Requests (CSRs) and responding with issued certificates.com.google.protobuf.ByteStringgetCaUrlBytes()A URL to a Fulcio-compatible CA, capable of receiving Certificate Signing Requests (CSRs) and responding with issued certificates.SigningConfiggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()java.lang.StringgetOidcUrl()A URL to an OpenID Connect identity provider.com.google.protobuf.ByteStringgetOidcUrlBytes()A URL to an OpenID Connect identity provider.java.lang.StringgetTlogUrls(int index)One or more URLs to Rekor-compatible transparency log.com.google.protobuf.ByteStringgetTlogUrlsBytes(int index)One or more URLs to Rekor-compatible transparency log.intgetTlogUrlsCount()One or more URLs to Rekor-compatible transparency log.com.google.protobuf.ProtocolStringListgetTlogUrlsList()One or more URLs to Rekor-compatible transparency log.java.lang.StringgetTsaUrls(int index)One ore more URLs to RFC 3161 Time Stamping Authority (TSA).com.google.protobuf.ByteStringgetTsaUrlsBytes(int index)One ore more URLs to RFC 3161 Time Stamping Authority (TSA).intgetTsaUrlsCount()One ore more URLs to RFC 3161 Time Stamping Authority (TSA).com.google.protobuf.ProtocolStringListgetTsaUrlsList()One ore more URLs to RFC 3161 Time Stamping Authority (TSA).protected com.google.protobuf.GeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()SigningConfig.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)SigningConfig.BuildermergeFrom(com.google.protobuf.Message other)SigningConfig.BuildermergeFrom(SigningConfig other)SigningConfig.BuildersetCaUrl(java.lang.String value)A URL to a Fulcio-compatible CA, capable of receiving Certificate Signing Requests (CSRs) and responding with issued certificates.SigningConfig.BuildersetCaUrlBytes(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.BuildersetOidcUrl(java.lang.String value)A URL to an OpenID Connect identity provider.SigningConfig.BuildersetOidcUrlBytes(com.google.protobuf.ByteString value)A URL to an OpenID Connect identity provider.SigningConfig.BuildersetTlogUrls(int index, java.lang.String value)One or more URLs to Rekor-compatible transparency log.SigningConfig.BuildersetTsaUrls(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
-
-
-
-
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<SigningConfig.Builder>
-
clear
public SigningConfig.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<SigningConfig.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<SigningConfig.Builder>
-
getDefaultInstanceForType
public SigningConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public SigningConfig build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public SigningConfig buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public SigningConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SigningConfig.Builder>
-
mergeFrom
public SigningConfig.Builder mergeFrom(SigningConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
getCaUrlin interfaceSigningConfigOrBuilder- 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:
getCaUrlBytesin interfaceSigningConfigOrBuilder- 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:
getOidcUrlin interfaceSigningConfigOrBuilder- 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:
getOidcUrlBytesin interfaceSigningConfigOrBuilder- 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:
getTlogUrlsListin interfaceSigningConfigOrBuilder- 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:
getTlogUrlsCountin interfaceSigningConfigOrBuilder- 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:
getTlogUrlsin interfaceSigningConfigOrBuilder- 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:
getTlogUrlsBytesin interfaceSigningConfigOrBuilder- 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:
getTsaUrlsListin interfaceSigningConfigOrBuilder- 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:
getTsaUrlsCountin interfaceSigningConfigOrBuilder- 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:
getTsaUrlsin interfaceSigningConfigOrBuilder- 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:
getTsaUrlsBytesin interfaceSigningConfigOrBuilder- 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.
-
-