public final class DeviceCredential extends GeneratedMessageV3 implements DeviceCredentialOrBuilder
A server-stored device credential used for authentication.
Protobuf type google.cloud.iot.v1.DeviceCredential
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
Static Fields
EXPIRATION_TIME_FIELD_NUMBER
public static final int EXPIRATION_TIME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
PUBLIC_KEY_FIELD_NUMBER
public static final int PUBLIC_KEY_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static DeviceCredential getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static DeviceCredential.Builder newBuilder()
newBuilder(DeviceCredential prototype)
public static DeviceCredential.Builder newBuilder(DeviceCredential prototype)
public static DeviceCredential parseDelimitedFrom(InputStream input)
public static DeviceCredential parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static DeviceCredential parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static DeviceCredential parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static DeviceCredential parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static DeviceCredential parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static DeviceCredential parseFrom(CodedInputStream input)
public static DeviceCredential parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static DeviceCredential parseFrom(InputStream input)
public static DeviceCredential parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static DeviceCredential parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static DeviceCredential parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<DeviceCredential> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getCredentialCase()
public DeviceCredential.CredentialCase getCredentialCase()
getDefaultInstanceForType()
public DeviceCredential getDefaultInstanceForType()
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 |
---|
Type | Description |
Timestamp | The expirationTime.
|
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;
getParserForType()
public Parser<DeviceCredential> getParserForType()
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;
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;
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
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 |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public DeviceCredential.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected DeviceCredential.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public DeviceCredential.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides