Class JaxbAttributeConverter
java.lang.Object
se.swedenconnect.signservice.protocol.dss.jaxb.JaxbAttributeConverter
- All Implemented Interfaces:
AttributeConverter<se.swedenconnect.schemas.saml_2_0.assertion.Attribute>
public class JaxbAttributeConverter
extends Object
implements AttributeConverter<se.swedenconnect.schemas.saml_2_0.assertion.Attribute>
An
AttributeConverter
for the JAXB representation of a SAML Attribute
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionconvert
(se.swedenconnect.schemas.saml_2_0.assertion.Attribute attribute) Converts the supplied attribute into its generic representationse.swedenconnect.schemas.saml_2_0.assertion.Attribute
convert
(IdentityAttribute<?> attribute) Converts the attribute from its generic representation to the specialized representation.
-
Constructor Details
-
JaxbAttributeConverter
public JaxbAttributeConverter()
-
-
Method Details
-
convert
public se.swedenconnect.schemas.saml_2_0.assertion.Attribute convert(IdentityAttribute<?> attribute) throws AttributeException Converts the attribute from its generic representation to the specialized representation.- Specified by:
convert
in interfaceAttributeConverter<se.swedenconnect.schemas.saml_2_0.assertion.Attribute>
- Parameters:
attribute
- the attribute to convert- Returns:
- an attribute object according to the instance's instantiated attribute representation
- Throws:
AttributeException
- for conversion errors
-
convert
public IdentityAttribute<?> convert(se.swedenconnect.schemas.saml_2_0.assertion.Attribute attribute) throws AttributeException Converts the supplied attribute into its generic representation- Specified by:
convert
in interfaceAttributeConverter<se.swedenconnect.schemas.saml_2_0.assertion.Attribute>
- Parameters:
attribute
- an attribute object according to the instance's instantiated attribute representation- Returns:
- a generic attribute representation
- Throws:
AttributeException
- for conversion errors
-