congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
SignatureManager.install
Code IndexAdd Tabnine to your IDE (free)

How to use
install
method
in
uk.gov.nationalarchives.droid.core.interfaces.signature.SignatureManager

Best Java code snippets using uk.gov.nationalarchives.droid.core.interfaces.signature.SignatureManager.install (Showing top 2 results out of 315)

origin: digital-preservation/droid

/**
 * Executes this action.
 * @param parent the parent window
 */
public void execute(Window parent) {
  final Path f = Paths.get(fileName);
  try {
    final SignatureFileInfo info = signatureManager.install(type, f, useAsDefault);
    final String message = String.format("Signature file %s has been installed", info.getFile().getFileName().toString());
    JOptionPane.showMessageDialog(parent, message, "Signature file installed", JOptionPane.INFORMATION_MESSAGE);
  } catch (final SignatureFileException e) {
    JOptionPane.showMessageDialog(parent, e.getMessage(), 
        "Error installing signature file", JOptionPane.ERROR_MESSAGE);
  }            
}
origin: uk.gov.nationalarchives/droid-ui

/**
 * Executes this action.
 * @param parent the parent window
 */
public void execute(Window parent) {
  File f = new File(fileName);
  try {
    SignatureFileInfo info = signatureManager.install(type, f, useAsDefault);
    String message = String.format("Signature file %s has been installed", info.getFile().getName());
    JOptionPane.showMessageDialog(parent, message, "Signature file installed", JOptionPane.INFORMATION_MESSAGE);
  } catch (SignatureFileException e) {
    JOptionPane.showMessageDialog(parent, e.getMessage(), 
        "Error installing signature file", JOptionPane.ERROR_MESSAGE);
  }            
}
uk.gov.nationalarchives.droid.core.interfaces.signatureSignatureManagerinstall

Javadoc

Installs a signature file in DROID.

Popular methods of SignatureManager

  • downloadLatest
    Downloads the latest file to local disk.
  • getAvailableSignatureFiles
  • getDefaultSignatures
  • getLatestSignatureFiles
    Returns a signature file info if a later version is available, otherwise returns null if we already

Popular in Java

  • Reading from database using SQL prepared statement
  • setRequestProperty (URLConnection)
  • onCreateOptionsMenu (Activity)
  • findViewById (Activity)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now