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
This class converts a String into a Boolean or returns the Boolean in input.
- Since:
- 1.1.0
- Author:
- Jerome Leleu
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Boolean
defaultValue.protected Boolean
internalConvert
(Object attribute) internalConvert.Methods inherited from class org.pac4j.core.profile.converter.AbstractAttributeConverter
accept, convert
-
Constructor Details
-
BooleanConverter
public BooleanConverter()Constructor for BooleanConverter.
-
-
Method Details
-
internalConvert
internalConvert.
- Overrides:
internalConvert
in classAbstractAttributeConverter
- Parameters:
attribute
- aObject
object- Returns:
- a
Object
object
-
defaultValue
defaultValue.
- Overrides:
defaultValue
in classAbstractAttributeConverter
- Returns:
- a
Object
object
-