public class BHiveSecuredHttpMessageConverter<T> extends Object implements org.springframework.http.converter.HttpMessageConverter<T>
HttpMessageConverter에 암호화 기능을 추가하는 Generic Converter| Constructor and Description |
|---|
BHiveSecuredHttpMessageConverter(AES256Crypto crypto,
org.springframework.http.converter.HttpMessageConverter<T> httpConverter)
생성자
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRead(Class<?> clazz,
org.springframework.http.MediaType mediaType) |
boolean |
canWrite(Class<?> clazz,
org.springframework.http.MediaType mediaType) |
List<org.springframework.http.MediaType> |
getSupportedMediaTypes() |
T |
read(Class<? extends T> clazz,
org.springframework.http.HttpInputMessage inputMessage) |
void |
write(T t,
org.springframework.http.MediaType contentType,
org.springframework.http.HttpOutputMessage outputMessage) |
public BHiveSecuredHttpMessageConverter(AES256Crypto crypto, org.springframework.http.converter.HttpMessageConverter<T> httpConverter)
crypto - 전송계층에 암호화를 처리하기 위한 암호화처리기httpConverter - 실제 평문에 대한 메시지 변환을 위한 내부 HttpMessageConverterpublic boolean canRead(Class<?> clazz, org.springframework.http.MediaType mediaType)
canRead in interface org.springframework.http.converter.HttpMessageConverter<T>public boolean canWrite(Class<?> clazz, org.springframework.http.MediaType mediaType)
canWrite in interface org.springframework.http.converter.HttpMessageConverter<T>public List<org.springframework.http.MediaType> getSupportedMediaTypes()
getSupportedMediaTypes in interface org.springframework.http.converter.HttpMessageConverter<T>public T read(Class<? extends T> clazz, org.springframework.http.HttpInputMessage inputMessage) throws IOException, org.springframework.http.converter.HttpMessageNotReadableException
read in interface org.springframework.http.converter.HttpMessageConverter<T>IOExceptionorg.springframework.http.converter.HttpMessageNotReadableExceptionpublic void write(T t, org.springframework.http.MediaType contentType, org.springframework.http.HttpOutputMessage outputMessage) throws IOException, org.springframework.http.converter.HttpMessageNotWritableException
write in interface org.springframework.http.converter.HttpMessageConverter<T>IOExceptionorg.springframework.http.converter.HttpMessageNotWritableExceptionCopyright © 2018. All rights reserved.