Package org.apache.maven.api.cli.mvnenc
Interface EncryptInvoker
- All Superinterfaces:
AutoCloseable
,Invoker<EncryptInvokerRequest>
- All Known Implementing Classes:
DefaultEncryptInvoker
Defines the contract for a component responsible for invoking the Maven encryption tool.
This interface extends the general Invoker interface, specializing it for encryption-related operations.
The EncryptInvoker is designed to handle encryption tasks within the Maven ecosystem, such as encrypting passwords or other sensitive information in Maven settings files.
- Since:
- 4.0.0
-
Method Summary
Modifier and TypeMethodDescriptionint
invoke
(EncryptInvokerRequest invokerRequest) Invokes the encryption tool using the provided EncryptInvokerRequest.
-
Method Details
-
invoke
Invokes the encryption tool using the provided EncryptInvokerRequest. This method is responsible for executing the encryption command or process based on the information contained in the request.- Specified by:
invoke
in interfaceInvoker<EncryptInvokerRequest>
- Parameters:
invokerRequest
- the request containing all necessary information for the encryption invocation- Returns:
- an integer representing the exit code of the invocation (0 typically indicates success)
- Throws:
InvokerException
- if an error occurs during the encryption process
-