Class X509Parameters
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.security.privateca.v1.X509Parameters
- All Implemented Interfaces:
X509ParametersOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class X509Parameters
extends com.google.protobuf.GeneratedMessage
implements X509ParametersOrBuilder
An [X509Parameters][google.cloud.security.privateca.v1.X509Parameters] is used to describe certain fields of an X.509 certificate, such as the key usage fields, fields specific to CA certificates, certificate policy extensions and custom extensions.Protobuf type
google.cloud.security.privateca.v1.X509Parameters- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classAn [X509Parameters][google.cloud.security.privateca.v1.X509Parameters] is used to describe certain fields of an X.509 certificate, such as the key usage fields, fields specific to CA certificates, certificate policy extensions and custom extensions.static final classDescribes the X.509 basic constraints extension, per [RFC 5280 section 4.2.1.9](https://tools.ietf.org/html/rfc5280#section-4.2.1.9)static interfacestatic final classDescribes the X.509 name constraints extension, per https://tools.ietf.org/html/rfc5280#section-4.2.1.10static interfaceNested 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 Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleangetAdditionalExtensions(int index) Optional.intOptional.Optional.getAdditionalExtensionsOrBuilder(int index) Optional.List<? extends X509ExtensionOrBuilder>Optional.getAiaOcspServers(int index) Optional.com.google.protobuf.ByteStringgetAiaOcspServersBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.Optional.Optional.static X509Parametersstatic final com.google.protobuf.Descriptors.DescriptorOptional.Optional.Optional.Optional.com.google.protobuf.Parser<X509Parameters>getPolicyIds(int index) Optional.intOptional.Optional.getPolicyIdsOrBuilder(int index) Optional.List<? extends ObjectIdOrBuilder>Optional.intbooleanOptional.inthashCode()booleanOptional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic X509Parameters.Builderstatic X509Parameters.BuildernewBuilder(X509Parameters prototype) protected X509Parameters.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static X509ParametersparseDelimitedFrom(InputStream input) static X509ParametersparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static X509ParametersparseFrom(byte[] data) static X509ParametersparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static X509ParametersparseFrom(com.google.protobuf.ByteString data) static X509ParametersparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static X509ParametersparseFrom(com.google.protobuf.CodedInputStream input) static X509ParametersparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static X509ParametersparseFrom(InputStream input) static X509ParametersparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static X509ParametersparseFrom(ByteBuffer data) static X509ParametersparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<X509Parameters>parser()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, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
KEY_USAGE_FIELD_NUMBER
public static final int KEY_USAGE_FIELD_NUMBER- See Also:
-
CA_OPTIONS_FIELD_NUMBER
public static final int CA_OPTIONS_FIELD_NUMBER- See Also:
-
POLICY_IDS_FIELD_NUMBER
public static final int POLICY_IDS_FIELD_NUMBER- See Also:
-
AIA_OCSP_SERVERS_FIELD_NUMBER
public static final int AIA_OCSP_SERVERS_FIELD_NUMBER- See Also:
-
NAME_CONSTRAINTS_FIELD_NUMBER
public static final int NAME_CONSTRAINTS_FIELD_NUMBER- See Also:
-
ADDITIONAL_EXTENSIONS_FIELD_NUMBER
public static final int ADDITIONAL_EXTENSIONS_FIELD_NUMBER- See Also:
-
-
Method Details
-
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
-
hasKeyUsage
public boolean hasKeyUsage()Optional. Indicates the intended use for keys that correspond to a certificate.
.google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasKeyUsagein interfaceX509ParametersOrBuilder- Returns:
- Whether the keyUsage field is set.
-
getKeyUsage
Optional. Indicates the intended use for keys that correspond to a certificate.
.google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getKeyUsagein interfaceX509ParametersOrBuilder- Returns:
- The keyUsage.
-
getKeyUsageOrBuilder
Optional. Indicates the intended use for keys that correspond to a certificate.
.google.cloud.security.privateca.v1.KeyUsage key_usage = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getKeyUsageOrBuilderin interfaceX509ParametersOrBuilder
-
hasCaOptions
public boolean hasCaOptions()Optional. Describes options in this [X509Parameters][google.cloud.security.privateca.v1.X509Parameters] that are relevant in a CA certificate. If not specified, a default basic constraints extension with `is_ca=false` will be added for leaf certificates.
.google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasCaOptionsin interfaceX509ParametersOrBuilder- Returns:
- Whether the caOptions field is set.
-
getCaOptions
Optional. Describes options in this [X509Parameters][google.cloud.security.privateca.v1.X509Parameters] that are relevant in a CA certificate. If not specified, a default basic constraints extension with `is_ca=false` will be added for leaf certificates.
.google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCaOptionsin interfaceX509ParametersOrBuilder- Returns:
- The caOptions.
-
getCaOptionsOrBuilder
Optional. Describes options in this [X509Parameters][google.cloud.security.privateca.v1.X509Parameters] that are relevant in a CA certificate. If not specified, a default basic constraints extension with `is_ca=false` will be added for leaf certificates.
.google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCaOptionsOrBuilderin interfaceX509ParametersOrBuilder
-
getPolicyIdsList
Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPolicyIdsListin interfaceX509ParametersOrBuilder
-
getPolicyIdsOrBuilderList
Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPolicyIdsOrBuilderListin interfaceX509ParametersOrBuilder
-
getPolicyIdsCount
public int getPolicyIdsCount()Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPolicyIdsCountin interfaceX509ParametersOrBuilder
-
getPolicyIds
Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPolicyIdsin interfaceX509ParametersOrBuilder
-
getPolicyIdsOrBuilder
Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
repeated .google.cloud.security.privateca.v1.ObjectId policy_ids = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPolicyIdsOrBuilderin interfaceX509ParametersOrBuilder
-
getAiaOcspServersList
public com.google.protobuf.ProtocolStringList getAiaOcspServersList()Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the "Authority Information Access" extension in the certificate.
repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAiaOcspServersListin interfaceX509ParametersOrBuilder- Returns:
- A list containing the aiaOcspServers.
-
getAiaOcspServersCount
public int getAiaOcspServersCount()Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the "Authority Information Access" extension in the certificate.
repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAiaOcspServersCountin interfaceX509ParametersOrBuilder- Returns:
- The count of aiaOcspServers.
-
getAiaOcspServers
Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the "Authority Information Access" extension in the certificate.
repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAiaOcspServersin interfaceX509ParametersOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The aiaOcspServers at the given index.
-
getAiaOcspServersBytes
public com.google.protobuf.ByteString getAiaOcspServersBytes(int index) Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the "Authority Information Access" extension in the certificate.
repeated string aia_ocsp_servers = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAiaOcspServersBytesin interfaceX509ParametersOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the aiaOcspServers at the given index.
-
hasNameConstraints
public boolean hasNameConstraints()Optional. Describes the X.509 name constraints extension.
.google.cloud.security.privateca.v1.X509Parameters.NameConstraints name_constraints = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasNameConstraintsin interfaceX509ParametersOrBuilder- Returns:
- Whether the nameConstraints field is set.
-
getNameConstraints
Optional. Describes the X.509 name constraints extension.
.google.cloud.security.privateca.v1.X509Parameters.NameConstraints name_constraints = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getNameConstraintsin interfaceX509ParametersOrBuilder- Returns:
- The nameConstraints.
-
getNameConstraintsOrBuilder
Optional. Describes the X.509 name constraints extension.
.google.cloud.security.privateca.v1.X509Parameters.NameConstraints name_constraints = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getNameConstraintsOrBuilderin interfaceX509ParametersOrBuilder
-
getAdditionalExtensionsList
Optional. Describes custom X.509 extensions.
repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAdditionalExtensionsListin interfaceX509ParametersOrBuilder
-
getAdditionalExtensionsOrBuilderList
Optional. Describes custom X.509 extensions.
repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAdditionalExtensionsOrBuilderListin interfaceX509ParametersOrBuilder
-
getAdditionalExtensionsCount
public int getAdditionalExtensionsCount()Optional. Describes custom X.509 extensions.
repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAdditionalExtensionsCountin interfaceX509ParametersOrBuilder
-
getAdditionalExtensions
Optional. Describes custom X.509 extensions.
repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAdditionalExtensionsin interfaceX509ParametersOrBuilder
-
getAdditionalExtensionsOrBuilder
Optional. Describes custom X.509 extensions.
repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAdditionalExtensionsOrBuilderin interfaceX509ParametersOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- 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 X509Parameters parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static X509Parameters parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static X509Parameters parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static X509Parameters parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static X509Parameters parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static X509Parameters parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static X509Parameters parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static X509Parameters parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static X509Parameters parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static X509Parameters parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected X509Parameters.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-