Class KeyShape.Builder

  • Enclosing class:
    KeyShape

    public static class KeyShape.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • algorithm

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

        Only AES algorithm is supported for External keys.

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

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

        Supported values include the following: - AES: 16, 24, or 32 - RSA: 256, 384, or 512 - ECDSA: 32, 48, or 66

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

        public KeyShape.Builder curveId​(KeyShape.CurveId curveId)
        Supported curve IDs for ECDSA keys.
        Parameters:
        curveId - the value to set
        Returns:
        this builder