Community articleisDigitalSignaturesAvailable method
Added by IBM contributorIBM on August 15, 2011
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

No abstract provided.



Description

This method determines whether digital signatures are available on the current computer.

Method

     public boolean isDigitalSignaturesAvailable( ) throws UWIException;


Parameters

There are no parameters for this method.

Returns

true if digital signatures are available on this computer; otherwise, false. On error, the method throws a generic exception (UWIException).

Example

In the following example, isDigitalSignaturesAvailable is used to determine whether or not digital signatures are available. A message is then printed which indicates the availability of digital signatures.
   private static void sigsAvailable() throws UWIException
   {
   XFDL theXFDL;
      if ((theXFDL = (XFDL)IFXMan.lookupInterface(XFDL.XFDL_INTERFACE_NAME,
         XFDL.XFDL_CURRENT_VERSION, 0, null, null)) == null)
         throw new Exception("Could not find interface");
      if (theXFDL.isDigitalSignaturesAvailable( )== true)
      {
         System.out.println("Digital signatures are available.");
      }
      else
      {
         System.out.println("Digital signatures are not available.");
      }
   }


Parent topic:
XFDL class