Package org.apache.maven.api.cli.mvnenc
Interface EncryptParser
- All Superinterfaces:
Parser<EncryptInvokerRequest>
- All Known Implementing Classes:
DefaultEncryptParser
Defines the contract for parsing encryption-related command-line arguments and creating an EncryptInvokerRequest.
This interface extends the general
Parser
interface, specializing it for encryption operations.- Since:
- 4.0.0
-
Method Summary
Modifier and TypeMethodDescriptionparse
(ParserRequest parserRequest) Parses the given ParserRequest to create an EncryptInvokerRequest.
-
Method Details
-
parse
@Nonnull EncryptInvokerRequest parse(@Nonnull ParserRequest parserRequest) throws ParserException, IOException Parses the given ParserRequest to create an EncryptInvokerRequest. This method is responsible for interpreting the contents of the ParserRequest and constructing the appropriate EncryptInvokerRequest object for encryption operations.- Specified by:
parse
in interfaceParser<EncryptInvokerRequest>
- Parameters:
parserRequest
- the request containing all necessary information for parsing- Returns:
- the parsed EncryptInvokerRequest
- Throws:
ParserException
- if there's an error during parsing of the requestIOException
- if there's an I/O error during the parsing process
-