Interface DeviceCredentialOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    DeviceCredential, DeviceCredential.Builder

    public interface DeviceCredentialOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      DeviceCredential.CredentialCase getCredentialCase()  
      com.google.protobuf.Timestamp getExpirationTime()
      [Optional] The time at which this credential becomes invalid.
      com.google.protobuf.TimestampOrBuilder getExpirationTimeOrBuilder()
      [Optional] The time at which this credential becomes invalid.
      PublicKeyCredential getPublicKey()
      A public key used to verify the signature of JSON Web Tokens (JWTs).
      PublicKeyCredentialOrBuilder getPublicKeyOrBuilder()
      A public key used to verify the signature of JSON Web Tokens (JWTs).
      boolean hasExpirationTime()
      [Optional] The time at which this credential becomes invalid.
      boolean hasPublicKey()
      A public key used to verify the signature of JSON Web Tokens (JWTs).
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • hasPublicKey

        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:
        Whether the publicKey field is set.
      • getPublicKey

        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:
        The publicKey.
      • getPublicKeyOrBuilder

        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;
      • hasExpirationTime

        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:
        Whether the expirationTime field is set.
      • getExpirationTime

        com.google.protobuf.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:
        The expirationTime.
      • getExpirationTimeOrBuilder

        com.google.protobuf.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;