Class CallbackHandlerFeature
- java.lang.Object
-
- jakarta.xml.ws.WebServiceFeature
-
- com.sun.xml.ws.api.security.CallbackHandlerFeature
-
@ManagedData public final class CallbackHandlerFeature extends jakarta.xml.ws.WebServiceFeatureWebServiceFeaturethat controlsCallbackHandlerused during security related processing of Metro.This rather untyped, low-level and user-unfriendly
CallbackHandlerobject controls many details of the security processing at runtime, such as locatingCertStoreorKeyStore. While we'd like to provide a higher level features for common configurations, this feature works as an catch-all escape hatch.See
DefaultCallbackHandler.handle(javax.security.auth.callback.Callback[])implementation as an example of what callbackCallbackHandlerreceives (note that this default implementation class itself is not a committed part of Metro.)This feature allows you to pass in an instance of
CallbackHandlerunlike<sc:CallbackHandlerConfiguration>assertion, which makes it convenient to pass in some state from the calling application intoCallbackHandler.- Since:
- Metro 1.5
- Author:
- Kohsuke Kawaguchi
-
-
Constructor Summary
Constructors Constructor Description CallbackHandlerFeature(CallbackHandler handler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CallbackHandlergetHandler()StringgetID()
-
-
-
Constructor Detail
-
CallbackHandlerFeature
public CallbackHandlerFeature(@NotNull CallbackHandler handler)
-
-
Method Detail
-
getID
@ManagedAttribute public String getID()
- Specified by:
getIDin classjakarta.xml.ws.WebServiceFeature
-
getHandler
@ManagedAttribute @NotNull public CallbackHandler getHandler()
- Returns:
CallbackHandlerset in the constructor. Never null.
-
-