Package se.litsec.opensaml.utils.spring
Class StringToXMLObjectConverter<T extends SAMLObject>
- java.lang.Object
-
- se.litsec.opensaml.utils.spring.StringToXMLObjectConverter<T>
-
- Type Parameters:
T
- the XML type
- All Implemented Interfaces:
org.springframework.core.convert.converter.Converter<String,T>
public abstract class StringToXMLObjectConverter<T extends SAMLObject> extends Object implements org.springframework.core.convert.converter.Converter<String,T>
An abstract Spring converter class for transforming string values into OpenSAML objects.- Author:
- Martin Lindström (martin.lindstrom@litsec.se)
-
-
Constructor Summary
Constructors Constructor Description StringToXMLObjectConverter(Class<T> clazz)
Constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
assign(T obj, String value)
Assigns the given value to the OpenSAML object (after conversion).T
convert(String source)
-
-
-
Field Detail
-
clazz
protected Class<T extends SAMLObject> clazz
The class.
-
-
Method Detail
-
convert
public T convert(String source)
- Specified by:
convert
in interfaceorg.springframework.core.convert.converter.Converter<String,T extends SAMLObject>
-
-