public final class DeviceCredential extends GeneratedMessageV3 implements DeviceCredentialOrBuilder
A server-stored device credential used for authentication.
Protobuf type google.cloud.iot.v1.DeviceCredential
Static Fields
EXPIRATION_TIME_FIELD_NUMBER
public static final int EXPIRATION_TIME_FIELD_NUMBER
Field Value
PUBLIC_KEY_FIELD_NUMBER
public static final int PUBLIC_KEY_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static DeviceCredential getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static DeviceCredential.Builder newBuilder()
Returns
newBuilder(DeviceCredential prototype)
public static DeviceCredential.Builder newBuilder(DeviceCredential prototype)
Parameter
Returns
public static DeviceCredential parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static DeviceCredential parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static DeviceCredential parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static DeviceCredential parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static DeviceCredential parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static DeviceCredential parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static DeviceCredential parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static DeviceCredential parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static DeviceCredential parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static DeviceCredential parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static DeviceCredential parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static DeviceCredential parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<DeviceCredential> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getCredentialCase()
public DeviceCredential.CredentialCase getCredentialCase()
Returns
getDefaultInstanceForType()
public DeviceCredential getDefaultInstanceForType()
Returns
getExpirationTime()
public Timestamp getExpirationTime()
[Optional] The time at which this credential becomes invalid. This
credential will be ignored for new client authentication requests after
this timestamp; however, it will not be automatically deleted.
.google.protobuf.Timestamp expiration_time = 6;
Returns
getExpirationTimeOrBuilder()
public TimestampOrBuilder getExpirationTimeOrBuilder()
[Optional] The time at which this credential becomes invalid. This
credential will be ignored for new client authentication requests after
this timestamp; however, it will not be automatically deleted.
.google.protobuf.Timestamp expiration_time = 6;
Returns
getParserForType()
public Parser<DeviceCredential> getParserForType()
Returns
Overrides
getPublicKey()
public PublicKeyCredential getPublicKey()
A public key used to verify the signature of JSON Web Tokens (JWTs).
When adding a new device credential, either via device creation or via
modifications, this public key credential may be required to be signed by
one of the registry level certificates. More specifically, if the
registry contains at least one certificate, any new device credential
must be signed by one of the registry certificates. As a result,
when the registry contains certificates, only X.509 certificates are
accepted as device credentials. However, if the registry does
not contain a certificate, self-signed certificates and public keys will
be accepted. New device credentials must be different from every
registry-level certificate.
.google.cloud.iot.v1.PublicKeyCredential public_key = 2;
Returns
getPublicKeyOrBuilder()
public PublicKeyCredentialOrBuilder getPublicKeyOrBuilder()
A public key used to verify the signature of JSON Web Tokens (JWTs).
When adding a new device credential, either via device creation or via
modifications, this public key credential may be required to be signed by
one of the registry level certificates. More specifically, if the
registry contains at least one certificate, any new device credential
must be signed by one of the registry certificates. As a result,
when the registry contains certificates, only X.509 certificates are
accepted as device credentials. However, if the registry does
not contain a certificate, self-signed certificates and public keys will
be accepted. New device credentials must be different from every
registry-level certificate.
.google.cloud.iot.v1.PublicKeyCredential public_key = 2;
Returns
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasExpirationTime()
public boolean hasExpirationTime()
[Optional] The time at which this credential becomes invalid. This
credential will be ignored for new client authentication requests after
this timestamp; however, it will not be automatically deleted.
.google.protobuf.Timestamp expiration_time = 6;
Returns
Type | Description |
boolean | Whether the expirationTime field is set.
|
hasPublicKey()
public boolean hasPublicKey()
A public key used to verify the signature of JSON Web Tokens (JWTs).
When adding a new device credential, either via device creation or via
modifications, this public key credential may be required to be signed by
one of the registry level certificates. More specifically, if the
registry contains at least one certificate, any new device credential
must be signed by one of the registry certificates. As a result,
when the registry contains certificates, only X.509 certificates are
accepted as device credentials. However, if the registry does
not contain a certificate, self-signed certificates and public keys will
be accepted. New device credentials must be different from every
registry-level certificate.
.google.cloud.iot.v1.PublicKeyCredential public_key = 2;
Returns
Type | Description |
boolean | Whether the publicKey field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public DeviceCredential.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected DeviceCredential.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public DeviceCredential.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions