检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
This option indicates whether to encrypt assertions. Request Signature Validation Yes Enabled by default. This option indicates whether to sign SAML requests. Enter the value of AuthnRequestsSigned displayed in the SP metadata file.
Encryption Key Keys used to encrypt a message. The value is left blank by default. Otherwise, the value must contain 16 digits. Signature Key Signature key used to generate a data signature based on the message content. The value is left blank by default.
Assertion Encryption This option indicates whether to encrypt assertions. Request Signature Validation This option indicates whether to sign SAML requests.
throw new RuntimeException("Could not encrypt data ",e); } } private static PublicKey getPublicRSAKey(String key) throws NoSuchAlgorithmException, InvalidKeySpecException { X509EncodedKeySpec x509 = new X509EncodedKeySpec(Base64Utils.decodeFromString(key))
The public key is used to encrypt sensitive information when calling a service API.
/encrypt.sh encrypt command. When prompted with the message "please enter what you want to encrypt content:", enter the value of agentSecret and press Enter to obtain the encrypted agentSecret, for example, {AES_GCM}0000xxxxxx111111. Run the ./encrypt.sh encrypt command.
Encrypted data:" + dataStr); } catch (Exception e) { log.error("Encrypt data failed", e); result.put("code", "500"); result.put("message", "Encrypt data failed"); printResult(result); return