Package org.pac4j.core.profile.converter
Class BooleanConverter
- java.lang.Object
-
- org.pac4j.core.profile.converter.AbstractAttributeConverter
-
- org.pac4j.core.profile.converter.BooleanConverter
-
- All Implemented Interfaces:
AttributeConverter
public final class BooleanConverter extends AbstractAttributeConverter
This class converts a String into a Boolean or returns the Boolean in input.- Since:
- 1.1.0
- Author:
- Jerome Leleu
-
-
Constructor Summary
Constructors Constructor Description BooleanConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Boolean
defaultValue()
protected java.lang.Boolean
internalConvert(java.lang.Object attribute)
-
Methods inherited from class org.pac4j.core.profile.converter.AbstractAttributeConverter
accept, convert
-
-
-
-
Method Detail
-
internalConvert
protected java.lang.Boolean internalConvert(java.lang.Object attribute)
- Overrides:
internalConvert
in classAbstractAttributeConverter
-
defaultValue
protected java.lang.Boolean defaultValue()
- Overrides:
defaultValue
in classAbstractAttributeConverter
-
-