Class CertificateValidationMessageReader
java.lang.Object
org.eblocker.certificate.validator.squid.CertificateValidationMessageReader
- Direct Known Subclasses:
CertificateValidationRequestReader,CertificateValidationResponseReader
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CertificateValidationMessagebuildMessage(long ID, String messageType, Map<String, String> map) protected X509Certificate[]getCertificates(Map<String, String> map) protected String[]getErrorCertIds(Map<String, String> map) protected String[]getErrorNames(Map<String, String> map) protected String[]getErrorReasons(Map<String, String> map) protected Integer[]getIntegerValues(Map<String, String> map, String prefix) protected String[]getStringValues(Map<String, String> map, String prefix) parseHeader(String line) protected CertificateValidationMessageparseMessage(BufferedReader reader) readKeyValues(Iterable<String> contentLines) Apply the Key_Regex to the body content to map the information needed
-
Field Details
-
KEY_REGEX
- See Also:
-
KEY_PATTERN
-
useConcurrency
protected boolean useConcurrency -
firstLinePattern
-
-
Constructor Details
-
CertificateValidationMessageReader
public CertificateValidationMessageReader(boolean useConcurrency)
-
-
Method Details
-
parseHeader
-
parseMessage
- Throws:
IOException
-
buildMessage
protected CertificateValidationMessage buildMessage(long ID, String messageType, Map<String, String> map) -
readKeyValues
Apply the Key_Regex to the body content to map the information needed- Parameters:
contentLines-- Returns:
-
getCertificates
-
getErrorNames
-
getErrorReasons
-
getStringValues
-
getErrorCertIds
-
getIntegerValues
-