Package com.pingidentity.pd.http
Class PwnedV2Extension
- java.lang.Object
-
- com.unboundid.directory.sdk.http.api.HTTPServletExtension
-
- com.pingidentity.pd.http.PwnedV2Extension
-
- All Implemented Interfaces:
com.unboundid.directory.sdk.common.internal.Configurable
,com.unboundid.directory.sdk.common.internal.ExampleUsageProvider
,com.unboundid.directory.sdk.common.internal.Reconfigurable<com.unboundid.directory.sdk.http.config.HTTPServletExtensionConfig>
,com.unboundid.directory.sdk.common.internal.UnboundIDExtension
public class PwnedV2Extension extends com.unboundid.directory.sdk.http.api.HTTPServletExtension
-
-
Field Summary
Fields Modifier and Type Field Description static String
ARG_NAME_PATH
-
Constructor Summary
Constructors Constructor Description PwnedV2Extension()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.unboundid.ldap.sdk.ResultCode
applyConfiguration(com.unboundid.directory.sdk.http.config.HTTPServletExtensionConfig config, com.unboundid.util.args.ArgumentParser parser, List<String> adminActionsRequired, List<String> messages)
Performs the necessary processing to apply or initialize configuration to the instance of the extensionjavax.servlet.http.HttpServlet
createServlet(com.unboundid.directory.sdk.http.types.HTTPServerContext httpServerContext, com.unboundid.directory.sdk.http.config.HTTPServletExtensionConfig httpServletExtensionConfig, com.unboundid.util.args.ArgumentParser argumentParser)
Performs the necessary processing tovoid
defineConfigArguments(com.unboundid.util.args.ArgumentParser parser)
Declare configuration arguments for the extensionString[]
getExtensionDescription()
String
getExtensionName()
List<String>
getServletPaths()
Performs the necessary processing to return the paths the extension can be reached at
-
-
-
Field Detail
-
ARG_NAME_PATH
public static final String ARG_NAME_PATH
- See Also:
- Constant Field Values
-
-
Method Detail
-
getExtensionName
public String getExtensionName()
- Specified by:
getExtensionName
in interfacecom.unboundid.directory.sdk.common.internal.UnboundIDExtension
- Specified by:
getExtensionName
in classcom.unboundid.directory.sdk.http.api.HTTPServletExtension
- Returns:
- the extension name for display purpose (for example in manage-extension, dsconfig)
-
getExtensionDescription
public String[] getExtensionDescription()
- Specified by:
getExtensionDescription
in interfacecom.unboundid.directory.sdk.common.internal.UnboundIDExtension
- Specified by:
getExtensionDescription
in classcom.unboundid.directory.sdk.http.api.HTTPServletExtension
- Returns:
- an array of strings treated as paragraphs for display purpose
-
defineConfigArguments
public void defineConfigArguments(com.unboundid.util.args.ArgumentParser parser) throws com.unboundid.util.args.ArgumentException
Declare configuration arguments for the extension- Specified by:
defineConfigArguments
in interfacecom.unboundid.directory.sdk.common.internal.Configurable
- Overrides:
defineConfigArguments
in classcom.unboundid.directory.sdk.http.api.HTTPServletExtension
- Parameters:
parser
- the argument parser- Throws:
com.unboundid.util.args.ArgumentException
- if any declaration encountered a problem
-
applyConfiguration
public com.unboundid.ldap.sdk.ResultCode applyConfiguration(com.unboundid.directory.sdk.http.config.HTTPServletExtensionConfig config, com.unboundid.util.args.ArgumentParser parser, List<String> adminActionsRequired, List<String> messages)
Performs the necessary processing to apply or initialize configuration to the instance of the extension- Specified by:
applyConfiguration
in interfacecom.unboundid.directory.sdk.common.internal.Reconfigurable<com.unboundid.directory.sdk.http.config.HTTPServletExtensionConfig>
- Overrides:
applyConfiguration
in classcom.unboundid.directory.sdk.http.api.HTTPServletExtension
- Parameters:
config
- the configuration object for the instance of the extensionparser
- the argument parseradminActionsRequired
- a list of message in case administrative action is requiredmessages
- a list of messages about applying configuration to the instance of the extension- Returns:
- SUCCESS if configuration was applied successfully
-
createServlet
public javax.servlet.http.HttpServlet createServlet(com.unboundid.directory.sdk.http.types.HTTPServerContext httpServerContext, com.unboundid.directory.sdk.http.config.HTTPServletExtensionConfig httpServletExtensionConfig, com.unboundid.util.args.ArgumentParser argumentParser) throws com.unboundid.ldap.sdk.LDAPException
Performs the necessary processing to- Specified by:
createServlet
in classcom.unboundid.directory.sdk.http.api.HTTPServletExtension
- Parameters:
httpServerContext
- the server contexthttpServletExtensionConfig
- the configuration object for the instance of the extensionargumentParser
- the argument parser- Throws:
com.unboundid.ldap.sdk.LDAPException
- in case there were any issues in creating the servlet
-
-