Class ListKeysRequest.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • compartmentId

        public ListKeysRequest.Builder compartmentId​(String compartmentId)
        The OCID of the compartment.
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder instance
      • limit

        public ListKeysRequest.Builder limit​(Integer limit)
        The maximum number of items to return in a paginated “List” call.
        Parameters:
        limit - the value to set
        Returns:
        this builder instance
      • page

        public ListKeysRequest.Builder page​(String page)
        The value of the opc-next-page response header from the previous “List” call.
        Parameters:
        page - the value to set
        Returns:
        this builder instance
      • opcRequestId

        public ListKeysRequest.Builder opcRequestId​(String opcRequestId)
        Unique identifier for the request.

        If provided, the returned request ID will include this value. Otherwise, a random request ID will be generated by the service.

        Parameters:
        opcRequestId - the value to set
        Returns:
        this builder instance
      • sortBy

        public ListKeysRequest.Builder sortBy​(ListKeysRequest.SortBy sortBy)
        The field to sort by.

        You can specify only one sort order. The default order for TIMECREATED is descending. The default order for DISPLAYNAME is ascending.

        Parameters:
        sortBy - the value to set
        Returns:
        this builder instance
      • protectionMode

        public ListKeysRequest.Builder protectionMode​(ListKeysRequest.ProtectionMode protectionMode)
        A key’s protection mode indicates how the key persists and where cryptographic operations that use the key are performed.

        A protection mode of HSM means that the key persists on a hardware security module (HSM) and all cryptographic operations are performed inside the HSM. A protection mode of SOFTWARE means that the key persists on the server, protected by the vault’s RSA wrapping key which persists on the HSM. All cryptographic operations that use a key with a protection mode of SOFTWARE are performed on the server. A protection mode of EXTERNAL mean that the key persists on the customer’s external key manager which is hosted externally outside of oracle. Oracle only hold a reference to that key. All cryptographic operations that use a key with a protection mode of EXTERNAL are performed by external key manager.

        Parameters:
        protectionMode - the value to set
        Returns:
        this builder instance
      • algorithm

        public ListKeysRequest.Builder algorithm​(ListKeysRequest.Algorithm algorithm)
        The algorithm used by a key’s key versions to encrypt or decrypt data.

        Currently, support includes AES, RSA, and ECDSA algorithms.

        Parameters:
        algorithm - the value to set
        Returns:
        this builder instance
      • length

        public ListKeysRequest.Builder length​(Integer length)
        The length of the key in bytes, expressed as an integer.

        Supported values include 16, 24, or 32.

        Parameters:
        length - the value to set
        Returns:
        this builder instance
      • invocationCallback

        public ListKeysRequest.Builder invocationCallback​(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)
        Set the invocation callback for the request to be built.
        Parameters:
        invocationCallback - the invocation callback to be set for the request
        Returns:
        this builder instance
      • retryConfiguration

        public ListKeysRequest.Builder retryConfiguration​(RetryConfiguration retryConfiguration)
        Set the retry configuration for the request to be built.
        Parameters:
        retryConfiguration - the retry configuration to be used for the request
        Returns:
        this builder instance