Class CallbackUtil
java.lang.Object
org.wildfly.security.auth.callback.CallbackUtil
Helper utility methods for callback handlers.
- Author:
- David M. Lloyd
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisOptional(Callback callback) Determine whether a callback is optional.static voidunsupported(Callback callback) A utility to handle a callback which is unsupported.
-
Method Details
-
isOptional
Determine whether a callback is optional.- Parameters:
callback- the callback- Returns:
trueif it is optional,falseif it is not optional or optionality could not be determined
-
unsupported
A utility to handle a callback which is unsupported. Optional callbacks will be ignored, otherwise the exception will be thrown. In the case of optional callbacks, this method will return.- Parameters:
callback- the callback which is not supported- Throws:
UnsupportedCallbackException- if the callback is not optional
-