Class CertificateRpcRequest

  • All Implemented Interfaces:
    java.io.Externalizable , java.io.Serializable , java.lang.Comparable , org.apache.avro.generic.GenericContainer , org.apache.avro.generic.GenericRecord , org.apache.avro.generic.IndexedRecord , org.apache.avro.specific.SpecificRecord

    
    public class CertificateRpcRequest
    extends SpecificRecordBase implements SpecificRecord
                        

    RPC request regarding certificates.

    • Constructor Detail

      • CertificateRpcRequest

        CertificateRpcRequest()
        Default constructor.
      • CertificateRpcRequest

        CertificateRpcRequest(CertificateUsage usage, String holdingIdentity, Object request)
        All-args constructor.
        Parameters:
        usage - The certificate usage.
        holdingIdentity - The holding identity (null for cluster certificate).
        request - The request type.
    • Method Detail

      • setUsage

         void setUsage(CertificateUsage value)

        Sets the value of the 'usage' field. The certificate usage.

        Parameters:
        value - the value to set.
      • getHoldingIdentity

         String getHoldingIdentity()

        Gets the value of the 'holdingIdentity' field.

        Returns:

        The holding identity (null for cluster certificate).

      • setHoldingIdentity

         void setHoldingIdentity(String value)

        Sets the value of the 'holdingIdentity' field. The holding identity (null for cluster certificate).

        Parameters:
        value - the value to set.
      • getRequest

         Object getRequest()

        Gets the value of the 'request' field.

        Returns:

        The request type.

      • setRequest

         void setRequest(Object value)

        Sets the value of the 'request' field. The request type.

        Parameters:
        value - the value to set.
      • getEncoder

         static BinaryMessageEncoder<CertificateRpcRequest> getEncoder()

        Return the BinaryMessageEncoder instance used by this class.

        Returns:

        the message encoder used by this class

      • getDecoder

         static BinaryMessageDecoder<CertificateRpcRequest> getDecoder()

        Return the BinaryMessageDecoder instance used by this class.

        Returns:

        the message decoder used by this class

      • createDecoder

         static BinaryMessageDecoder<CertificateRpcRequest> createDecoder(SchemaStore resolver)

        Create a new BinaryMessageDecoder instance for this class that uses the specified SchemaStore.

        Parameters:
        resolver - a SchemaStore used to find schemas by fingerprint
        Returns:

        a BinaryMessageDecoder instance for this class backed by the given SchemaStore

      • toByteBuffer

         ByteBuffer toByteBuffer()

        Serializes this CertificateRpcRequest to a ByteBuffer.

        Returns:

        a buffer holding the serialized data for this instance

      • fromByteBuffer

         static CertificateRpcRequest fromByteBuffer(ByteBuffer b)

        Deserializes a CertificateRpcRequest from a ByteBuffer.

        Parameters:
        b - a byte buffer holding serialized data for an instance of this class
        Returns:

        a CertificateRpcRequest instance decoded from the given buffer