public class FormRequestDecryptor extends QueryParamsRequestDecryptor
CRYPTO_PARAM_DATAloggerCRYPTO_PREFIX, CRYPTO_SEPARATOR| 构造器和说明 |
|---|
FormRequestDecryptor(HttpCryptoSm2Certificate httpCryptoSm2Certificate,
org.springframework.http.converter.support.AllEncompassingFormHttpMessageConverter formHttpMessageConverter) |
| 限定符和类型 | 方法和说明 |
|---|---|
CryptoHttpInputMessage |
doDecrypt(org.springframework.http.HttpInputMessage inputMessage) |
org.springframework.http.converter.support.AllEncompassingFormHttpMessageConverter |
getFormHttpMessageConverter() |
protected boolean |
isFormAndMultipart(org.springframework.http.MediaType contentType) |
protected org.springframework.util.MultiValueMap<String,?> |
parseDecryptedData(Map<String,Object> decryptedData) |
boolean |
support(org.springframework.http.HttpInputMessage inputMessage)
检查是否需要解密请求数据
|
decrypt, decryptData, getCharset, getDescription, setSm4KeyHoldergetTextEncryptorpublic FormRequestDecryptor(HttpCryptoSm2Certificate httpCryptoSm2Certificate, org.springframework.http.converter.support.AllEncompassingFormHttpMessageConverter formHttpMessageConverter)
public boolean support(org.springframework.http.HttpInputMessage inputMessage)
RequestDecryptorsupport 在接口中 RequestDecryptorsupport 在类中 QueryParamsRequestDecryptorinputMessage - HTTP请求对象protected boolean isFormAndMultipart(org.springframework.http.MediaType contentType)
public CryptoHttpInputMessage doDecrypt(org.springframework.http.HttpInputMessage inputMessage) throws IOException
doDecrypt 在类中 QueryParamsRequestDecryptorIOExceptionprotected org.springframework.util.MultiValueMap<String,?> parseDecryptedData(Map<String,Object> decryptedData)
public org.springframework.http.converter.support.AllEncompassingFormHttpMessageConverter getFormHttpMessageConverter()
Copyright © 2023. All rights reserved.