public final class X509Parameters extends GeneratedMessageV3 implements X509ParametersOrBuilder
An 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
Static Fields
ADDITIONAL_EXTENSIONS_FIELD_NUMBER
public static final int ADDITIONAL_EXTENSIONS_FIELD_NUMBER
Field Value
AIA_OCSP_SERVERS_FIELD_NUMBER
public static final int AIA_OCSP_SERVERS_FIELD_NUMBER
Field Value
CA_OPTIONS_FIELD_NUMBER
public static final int CA_OPTIONS_FIELD_NUMBER
Field Value
KEY_USAGE_FIELD_NUMBER
public static final int KEY_USAGE_FIELD_NUMBER
Field Value
POLICY_IDS_FIELD_NUMBER
public static final int POLICY_IDS_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static X509Parameters getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static X509Parameters.Builder newBuilder()
Returns
newBuilder(X509Parameters prototype)
public static X509Parameters.Builder newBuilder(X509Parameters prototype)
Parameter
Returns
public static X509Parameters parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static X509Parameters parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static X509Parameters parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static X509Parameters parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static X509Parameters parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static X509Parameters parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static X509Parameters parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static X509Parameters parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static X509Parameters parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static X509Parameters parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static X509Parameters parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static X509Parameters parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<X509Parameters> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getAdditionalExtensions(int index)
public X509Extension getAdditionalExtensions(int index)
Optional. Describes custom X.509 extensions.
repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Returns
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];
Returns
getAdditionalExtensionsList()
public List<X509Extension> getAdditionalExtensionsList()
Optional. Describes custom X.509 extensions.
repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns
getAdditionalExtensionsOrBuilder(int index)
public X509ExtensionOrBuilder getAdditionalExtensionsOrBuilder(int index)
Optional. Describes custom X.509 extensions.
repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Returns
getAdditionalExtensionsOrBuilderList()
public List<? extends X509ExtensionOrBuilder> getAdditionalExtensionsOrBuilderList()
Optional. Describes custom X.509 extensions.
repeated .google.cloud.security.privateca.v1.X509Extension additional_extensions = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type | Description |
List<? extends com.google.cloud.security.privateca.v1.X509ExtensionOrBuilder> | |
getAiaOcspServers(int index)
public String getAiaOcspServers(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];
Parameter
Name | Description |
index | int
The index of the element to return.
|
Returns
Type | Description |
String | The aiaOcspServers at the given index.
|
getAiaOcspServersBytes(int index)
public 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];
Parameter
Name | Description |
index | int
The index of the value to return.
|
Returns
Type | Description |
ByteString | The bytes of the aiaOcspServers at the given index.
|
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];
Returns
Type | Description |
int | The count of aiaOcspServers.
|
getAiaOcspServersList()
public 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];
Returns
getCaOptions()
public X509Parameters.CaOptions getCaOptions()
Optional. Describes options in this X509Parameters that are relevant in a CA
certificate.
.google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns
getCaOptionsOrBuilder()
public X509Parameters.CaOptionsOrBuilder getCaOptionsOrBuilder()
Optional. Describes options in this X509Parameters that are relevant in a CA
certificate.
.google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns
getDefaultInstanceForType()
public X509Parameters getDefaultInstanceForType()
Returns
getKeyUsage()
public KeyUsage 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];
Returns
getKeyUsageOrBuilder()
public KeyUsageOrBuilder 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];
Returns
getParserForType()
public Parser<X509Parameters> getParserForType()
Returns
Overrides
getPolicyIds(int index)
public ObjectId getPolicyIds(int index)
Parameter
Returns
getPolicyIdsCount()
public int getPolicyIdsCount()
Returns
getPolicyIdsList()
public List<ObjectId> getPolicyIdsList()
Returns
getPolicyIdsOrBuilder(int index)
public ObjectIdOrBuilder getPolicyIdsOrBuilder(int index)
Parameter
Returns
getPolicyIdsOrBuilderList()
public List<? extends ObjectIdOrBuilder> getPolicyIdsOrBuilderList()
Returns
Type | Description |
List<? extends com.google.cloud.security.privateca.v1.ObjectIdOrBuilder> | |
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasCaOptions()
public boolean hasCaOptions()
Optional. Describes options in this X509Parameters that are relevant in a CA
certificate.
.google.cloud.security.privateca.v1.X509Parameters.CaOptions ca_options = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type | Description |
boolean | Whether the caOptions field is set.
|
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];
Returns
Type | Description |
boolean | Whether the keyUsage field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public X509Parameters.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected X509Parameters.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public X509Parameters.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions