Class CertificateAuthority

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

    public final class CertificateAuthority
    extends com.google.protobuf.GeneratedMessage
    implements CertificateAuthorityOrBuilder
     CertificateAuthority enlists the information required to identify which
     CA to use and perform signature verification.
     
    Protobuf type dev.sigstore.trustroot.v1.CertificateAuthority
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  CertificateAuthority.Builder
      CertificateAuthority enlists the information required to identify which CA to use and perform signature verification.
      • 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 CERT_CHAIN_FIELD_NUMBER  
      static int SUBJECT_FIELD_NUMBER  
      static int URI_FIELD_NUMBER  
      static int VALID_FOR_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 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
      • 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:
        hasSubject in interface CertificateAuthorityOrBuilder
        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:
        getSubject in interface CertificateAuthorityOrBuilder
        Returns:
        The subject.
      • 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:
        getUri in interface CertificateAuthorityOrBuilder
        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:
        getUriBytes in interface CertificateAuthorityOrBuilder
        Returns:
        The bytes for uri.
      • 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:
        hasCertChain in interface CertificateAuthorityOrBuilder
        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:
        getCertChain in interface CertificateAuthorityOrBuilder
        Returns:
        The certChain.
      • 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:
        getCertChainOrBuilder in interface CertificateAuthorityOrBuilder
      • 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:
        hasValidFor in interface CertificateAuthorityOrBuilder
        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:
        getValidFor in interface CertificateAuthorityOrBuilder
        Returns:
        The validFor.
      • 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:
        getValidForOrBuilder in interface CertificateAuthorityOrBuilder
      • 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 CertificateAuthority parseFrom​(java.nio.ByteBuffer data)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        public com.google.protobuf.Parser<CertificateAuthority> 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 CertificateAuthority getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder