Class SigningConfig

  • All Implemented Interfaces:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, SigningConfigOrBuilder, java.io.Serializable

    public final class SigningConfig
    extends com.google.protobuf.GeneratedMessage
    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
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  SigningConfig.Builder
      SigningConfig represents the trusted entities/state needed by Sigstore signing.
      • Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage

        com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,​BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,​BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,​T extends java.lang.Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter
      • Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage

        com.google.protobuf.AbstractMessage.BuilderParent
      • Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

        com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int CA_URL_FIELD_NUMBER  
      static int OIDC_URL_FIELD_NUMBER  
      static int TLOG_URLS_FIELD_NUMBER  
      static int TSA_URLS_FIELD_NUMBER  
      • Fields inherited from class com.google.protobuf.GeneratedMessage

        alwaysUseFieldBuilders, unknownFields
      • Fields inherited from class com.google.protobuf.AbstractMessage

        memoizedSize
      • Fields inherited from class com.google.protobuf.AbstractMessageLite

        memoizedHashCode
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      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.
      static SigningConfig getDefaultInstance()  
      SigningConfig getDefaultInstanceForType()  
      static com.google.protobuf.Descriptors.Descriptor getDescriptor()  
      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.
      com.google.protobuf.Parser<SigningConfig> getParserForType()  
      int getSerializedSize()  
      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).
      int hashCode()  
      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()  
      boolean isInitialized()  
      static SigningConfig.Builder newBuilder()  
      static SigningConfig.Builder newBuilder​(SigningConfig prototype)  
      SigningConfig.Builder newBuilderForType()  
      protected SigningConfig.Builder newBuilderForType​(com.google.protobuf.AbstractMessage.BuilderParent parent)  
      static SigningConfig parseDelimitedFrom​(java.io.InputStream input)  
      static SigningConfig parseDelimitedFrom​(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static SigningConfig parseFrom​(byte[] data)  
      static SigningConfig parseFrom​(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static SigningConfig parseFrom​(com.google.protobuf.ByteString data)  
      static SigningConfig parseFrom​(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static SigningConfig parseFrom​(com.google.protobuf.CodedInputStream input)  
      static SigningConfig parseFrom​(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static SigningConfig parseFrom​(java.io.InputStream input)  
      static SigningConfig parseFrom​(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static SigningConfig parseFrom​(java.nio.ByteBuffer data)  
      static SigningConfig parseFrom​(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static com.google.protobuf.Parser<SigningConfig> parser()  
      SigningConfig.Builder toBuilder()  
      void writeTo​(com.google.protobuf.CodedOutputStream output)  
      • Methods inherited from class com.google.protobuf.GeneratedMessage

        canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
      • Methods inherited from class com.google.protobuf.AbstractMessage

        findInitializationErrors, getInitializationErrorString, hashFields, toString
      • Methods inherited from class com.google.protobuf.AbstractMessageLite

        addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface com.google.protobuf.MessageLite

        toByteArray, toByteString, writeDelimitedTo, writeTo
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDescriptorForType, 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
      • 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.
      • 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.
      • 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.
      • 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.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessage
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws java.io.IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessage
        Throws:
        java.io.IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessage
      • equals

        public boolean equals​(java.lang.Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static SigningConfig parseFrom​(java.nio.ByteBuffer data)
                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static SigningConfig parseFrom​(java.nio.ByteBuffer data,
                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static SigningConfig parseFrom​(com.google.protobuf.ByteString data)
                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static SigningConfig parseFrom​(com.google.protobuf.ByteString data,
                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static SigningConfig parseFrom​(byte[] data)
                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static SigningConfig parseFrom​(byte[] data,
                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static SigningConfig parseFrom​(java.io.InputStream input)
                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static SigningConfig parseFrom​(java.io.InputStream input,
                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static SigningConfig parseDelimitedFrom​(java.io.InputStream input)
                                                throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static SigningConfig parseDelimitedFrom​(java.io.InputStream input,
                                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static SigningConfig parseFrom​(com.google.protobuf.CodedInputStream input)
                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static SigningConfig parseFrom​(com.google.protobuf.CodedInputStream input,
                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • newBuilderForType

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

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

        protected SigningConfig.Builder newBuilderForType​(com.google.protobuf.AbstractMessage.BuilderParent parent)
        Overrides:
        newBuilderForType in class com.google.protobuf.AbstractMessage
      • getDefaultInstance

        public static SigningConfig getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<SigningConfig> parser()
      • getParserForType

        public com.google.protobuf.Parser<SigningConfig> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessage
      • getDefaultInstanceForType

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