public class PDFPasswordProviderTool extends Tool implements CryptoMaterialProvider<PasswordMaterial>
Tool.ActivationRequest
DEFAULT_PRIORITY, MAX_PRIORITY, MIN_PRIORITY
Constructor and Description |
---|
PDFPasswordProviderTool() |
Modifier and Type | Method and Description |
---|---|
void |
provide(CryptoMaterialReceiver<PasswordMaterial> receiver)
This method is called if a security handler needs its
CryptoMaterial . |
protected void |
setManager(ToolManager manager)
Receives the
ToolManager instance, which the Tool implementation has been
registered for. |
contribute, getActivationFeedback, getActivationRequest, getActivationRequestForKeyPressed, getActivationRequestForMouseDragged, getActivationRequestForMousePressed, getCursor, getDispatchPriority, getManager, getRenderPriority, handleEditEvent, handleKeyPressed, handleKeyReleased, handleKeyTyped, handleMouseClicked, handleMouseDragged, handleMouseEntered, handleMouseExited, handleMouseMoved, handleMousePressed, handleMouseReleased, handleMouseWheelMoved, propagatePropertyChange, render, setActive, setCursor, setEnabled, setStatusFeedback
public void provide(CryptoMaterialReceiver<PasswordMaterial> receiver)
CryptoMaterialProvider
CryptoMaterial
. Every
implementation should call CryptoMaterialReceiver.receive(CryptoMaterial)
if all
information for a specific CryptoMaterial
is gathered, and evaluate the return value.
If a provider is not able to serve a valid CryptoMaterial
, it should cancel the request
by calling CryptoMaterialReceiver.cancel()
.provide
in interface CryptoMaterialProvider<PasswordMaterial>
receiver
- the callback@CallOnEDT protected void setManager(ToolManager manager)
Tool
ToolManager
instance, which the Tool
implementation has been
registered for. If the Tool
is deregistered
this
method will be called with null.setManager
in class Tool
Copyright © 2024 levigo holding gmbh. All rights reserved.