The WebCertificateHandler constructor
- Organization of this page
Description
Creates an instance of the WebCertificateHandler class. The request and response parameters are mandatory. If null is specified, a ParameterError exception is called.
Syntax
public WebCertificateHandler(HttpServletRequest request, HttpServletResponse response, AttributeEntry[] aliases) throws ParameterError; public WebCertificateHandler(HttpServletRequest request, HttpServletResponse response, String aliasesFile) throws ParameterError, FormatError, FileNotFoundException, IOException, SecurityException;
Parameters
- request:
-
Specifies the JSP/Servlet activation parameter with no changes.
- response:
-
Specifies the JSP/Servlet activation parameter with no changes.
- aliases:
-
Specifies the information to be included in the Credential (UserAttributes) that is created when authentication succeeds. If there is no information to be obtained, specify null. In this case, no Credential is created (an empty UserAttributes object is created). For aliases, specify an array of AttributeEntry objects. If the specified parameter lacks necessary information, a FormatError exception occurs (because a mandatory value is not stored or because a value that violates the format is specified).
- aliasesFile:
-
Specifies the information to be included in the Credential (UserAttributes) that is created when authentication succeeds. If there is no information to be obtained, specify null. In this case, no Credential is created (an empty UserAttributes object is created). For aliasesFile, specify a file name. If the specified parameter lacks necessary information, a FormatError exception occurs (because a mandatory value is not stored or because a value that violates the format is specified).
Exceptions
- java.io.FileNotFoundException:
-
The specified file cannot be opened because it is missing or is a directory, or because of some other reason (when the exception occurs in the constructor of the FileInputStream class).
- java.lang.SecurityException:
-
SecurityManager is present, and read access to the file using SecurityManager's checkRead method has been rejected.
- java.io.IOException:
-
An attempt to read the file has failed.
- com.cosminexus.admin.common.ParameterError:
-
A reference to HttpServletRequest or HttpServletResponse is not specified.
- com.cosminexus.admin.common.FormatError:
-
Either or both of the aliases or aliasesFile parameters lack necessary information or contain extra information.