Package dev.sigstore.proto.trustroot.v1
Class CertificateAuthority
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessage
-
- dev.sigstore.proto.trustroot.v1.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 typedev.sigstore.trustroot.v1.CertificateAuthority- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCertificateAuthority.BuilderCertificateAuthority 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
-
-
Field Summary
Fields Modifier and Type Field Description static intCERT_CHAIN_FIELD_NUMBERstatic intSUBJECT_FIELD_NUMBERstatic intURI_FIELD_NUMBERstatic intVALID_FOR_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)X509CertificateChaingetCertChain()The certificate chain for this CA.X509CertificateChainOrBuildergetCertChainOrBuilder()The certificate chain for this CA.static CertificateAuthoritygetDefaultInstance()CertificateAuthoritygetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Parser<CertificateAuthority>getParserForType()intgetSerializedSize()DistinguishedNamegetSubject()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.TimeRangeOrBuildergetValidForOrBuilder()The time the *entire* chain was valid.booleanhasCertChain()The certificate chain for this CA.inthashCode()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()static CertificateAuthority.BuildernewBuilder()static CertificateAuthority.BuildernewBuilder(CertificateAuthority prototype)CertificateAuthority.BuildernewBuilderForType()protected CertificateAuthority.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)static CertificateAuthorityparseDelimitedFrom(java.io.InputStream input)static CertificateAuthorityparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CertificateAuthorityparseFrom(byte[] data)static CertificateAuthorityparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CertificateAuthorityparseFrom(com.google.protobuf.ByteString data)static CertificateAuthorityparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CertificateAuthorityparseFrom(com.google.protobuf.CodedInputStream input)static CertificateAuthorityparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CertificateAuthorityparseFrom(java.io.InputStream input)static CertificateAuthorityparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CertificateAuthorityparseFrom(java.nio.ByteBuffer data)static CertificateAuthorityparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<CertificateAuthority>parser()CertificateAuthority.BuildertoBuilder()voidwriteTo(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
-
-
-
-
Field Detail
-
SUBJECT_FIELD_NUMBER
public static final int SUBJECT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
URI_FIELD_NUMBER
public static final int URI_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CERT_CHAIN_FIELD_NUMBER
public static final int CERT_CHAIN_FIELD_NUMBER
- See Also:
- Constant Field Values
-
VALID_FOR_FIELD_NUMBER
public static final int VALID_FOR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
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
-
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.
-
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.
-
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.
-
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.
-
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
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.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:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static CertificateAuthority.Builder newBuilder()
-
newBuilder
public static CertificateAuthority.Builder newBuilder(CertificateAuthority prototype)
-
toBuilder
public CertificateAuthority.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected CertificateAuthority.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
- Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
public static CertificateAuthority getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<CertificateAuthority> parser()
-
getParserForType
public com.google.protobuf.Parser<CertificateAuthority> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
public CertificateAuthority getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-