Class Saml2MetadataHttpMessageConverter
java.lang.Object
org.springframework.http.converter.AbstractHttpMessageConverter<org.opensaml.saml.saml2.metadata.EntityDescriptor>
se.swedenconnect.spring.saml.idp.metadata.Saml2MetadataHttpMessageConverter
- All Implemented Interfaces:
HttpMessageConverter<org.opensaml.saml.saml2.metadata.EntityDescriptor>
public class Saml2MetadataHttpMessageConverter
extends AbstractHttpMessageConverter<org.opensaml.saml.saml2.metadata.EntityDescriptor>
A
HttpMessageConverter
that reads and writes EntityDescriptor
objects.- Author:
- Martin Lindström
-
Field Summary
Fields inherited from class org.springframework.http.converter.AbstractHttpMessageConverter
logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected org.opensaml.saml.saml2.metadata.EntityDescriptor
readInternal
(Class<? extends org.opensaml.saml.saml2.metadata.EntityDescriptor> clazz, HttpInputMessage inputMessage) protected boolean
protected void
writeInternal
(org.opensaml.saml.saml2.metadata.EntityDescriptor t, HttpOutputMessage outputMessage) Methods inherited from class org.springframework.http.converter.AbstractHttpMessageConverter
addDefaultHeaders, canRead, canRead, canWrite, canWrite, getContentLength, getDefaultCharset, getDefaultContentType, getSupportedMediaTypes, read, setDefaultCharset, setSupportedMediaTypes, supportsRepeatableWrites, write
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.http.converter.HttpMessageConverter
getSupportedMediaTypes
-
Constructor Details
-
Saml2MetadataHttpMessageConverter
public Saml2MetadataHttpMessageConverter()Constructor.
-
-
Method Details
-
supports
- Specified by:
supports
in classAbstractHttpMessageConverter<org.opensaml.saml.saml2.metadata.EntityDescriptor>
-
readInternal
@NonNull protected org.opensaml.saml.saml2.metadata.EntityDescriptor readInternal(@NonNull Class<? extends org.opensaml.saml.saml2.metadata.EntityDescriptor> clazz, HttpInputMessage inputMessage) throws IOException, HttpMessageNotReadableException - Specified by:
readInternal
in classAbstractHttpMessageConverter<org.opensaml.saml.saml2.metadata.EntityDescriptor>
- Throws:
IOException
HttpMessageNotReadableException
-
writeInternal
protected void writeInternal(@NonNull org.opensaml.saml.saml2.metadata.EntityDescriptor t, HttpOutputMessage outputMessage) throws IOException, HttpMessageNotWritableException - Specified by:
writeInternal
in classAbstractHttpMessageConverter<org.opensaml.saml.saml2.metadata.EntityDescriptor>
- Throws:
IOException
HttpMessageNotWritableException
-