Class ImportKeyMaterialRequest

    • Constructor Detail

      • ImportKeyMaterialRequest

        public ImportKeyMaterialRequest()
      • ImportKeyMaterialRequest

        public ImportKeyMaterialRequest​(ImportKeyMaterialRequest source)
        NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy, and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
    • Method Detail

      • getEncryptedKeyMaterial

        public String getEncryptedKeyMaterial()
        Get 使用GetParametersForImport 返回的PublicKey加密后的密钥材料base64编码。对于国密版本region的KMS,导入的密钥材料长度要求为 128 bit,FIPS版本region的KMS, 导入的密钥材料长度要求为 256 bit。
        Returns:
        EncryptedKeyMaterial 使用GetParametersForImport 返回的PublicKey加密后的密钥材料base64编码。对于国密版本region的KMS,导入的密钥材料长度要求为 128 bit,FIPS版本region的KMS, 导入的密钥材料长度要求为 256 bit。
      • setEncryptedKeyMaterial

        public void setEncryptedKeyMaterial​(String EncryptedKeyMaterial)
        Set 使用GetParametersForImport 返回的PublicKey加密后的密钥材料base64编码。对于国密版本region的KMS,导入的密钥材料长度要求为 128 bit,FIPS版本region的KMS, 导入的密钥材料长度要求为 256 bit。
        Parameters:
        EncryptedKeyMaterial - 使用GetParametersForImport 返回的PublicKey加密后的密钥材料base64编码。对于国密版本region的KMS,导入的密钥材料长度要求为 128 bit,FIPS版本region的KMS, 导入的密钥材料长度要求为 256 bit。
      • getImportToken

        public String getImportToken()
        Get 通过调用GetParametersForImport获得的导入令牌。
        Returns:
        ImportToken 通过调用GetParametersForImport获得的导入令牌。
      • setImportToken

        public void setImportToken​(String ImportToken)
        Set 通过调用GetParametersForImport获得的导入令牌。
        Parameters:
        ImportToken - 通过调用GetParametersForImport获得的导入令牌。
      • getKeyId

        public String getKeyId()
        Get 指定导入密钥材料的CMK,需要和GetParametersForImport 指定的CMK相同。
        Returns:
        KeyId 指定导入密钥材料的CMK,需要和GetParametersForImport 指定的CMK相同。
      • setKeyId

        public void setKeyId​(String KeyId)
        Set 指定导入密钥材料的CMK,需要和GetParametersForImport 指定的CMK相同。
        Parameters:
        KeyId - 指定导入密钥材料的CMK,需要和GetParametersForImport 指定的CMK相同。
      • getValidTo

        public Long getValidTo()
        Get 密钥材料过期时间 unix 时间戳,不指定或者 0 表示密钥材料不会过期,若指定过期时间,需要大于当前时间点,最大支持 2147443200。
        Returns:
        ValidTo 密钥材料过期时间 unix 时间戳,不指定或者 0 表示密钥材料不会过期,若指定过期时间,需要大于当前时间点,最大支持 2147443200。
      • setValidTo

        public void setValidTo​(Long ValidTo)
        Set 密钥材料过期时间 unix 时间戳,不指定或者 0 表示密钥材料不会过期,若指定过期时间,需要大于当前时间点,最大支持 2147443200。
        Parameters:
        ValidTo - 密钥材料过期时间 unix 时间戳,不指定或者 0 表示密钥材料不会过期,若指定过期时间,需要大于当前时间点,最大支持 2147443200。