Package javax.security.auth.callback
Class UnsupportedCallbackException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- javax.security.auth.callback.UnsupportedCallbackException
-
- All Implemented Interfaces:
Serializable
public class UnsupportedCallbackException extends Exception
Thrown when aCallbackHandlerdoes not support a particularCallback.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnsupportedCallbackException(Callback callback)Creates a new exception instance and initializes it with just the unsupportedCallback, but no error message.UnsupportedCallbackException(Callback callback, String message)Creates a new exception instance and initializes it with both the unsupportedCallbackand an error message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CallbackgetCallback()Returns the unsupportedCallbackthat triggered this exception.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
UnsupportedCallbackException
public UnsupportedCallbackException(Callback callback)
Creates a new exception instance and initializes it with just the unsupportedCallback, but no error message.- Parameters:
callback- theCallback
-
-
Method Detail
-
getCallback
public Callback getCallback()
Returns the unsupportedCallbackthat triggered this exception.- Returns:
- the
Callback
-
-