code: public final boolean isCryptoAllowed(Key key)
              throws ExemptionMechanismException {
          boolean ret = false;
          if (done && (key != null)) {
              // Check if the key passed in is the same as the one
              // this exemption mechanism used.
              ret = keyStored.equals(key);
          }
          return ret;
       }
docs: Returns whether the result blob has been generated successfully by this
  exemption mechanism.
  
  <p>The method also makes sure that the key passed in is the same as
  the one this exemption mechanism used in initializing and generating
  phases.
  
  @param key the key the crypto is going to use.
  
  @return whether the result blob of the same key has been generated
  successfully by this exemption mechanism; false if <code>key</code>
  is null.
  
  @exception ExemptionMechanismException if problem(s) encountered
  while determining whether the result blob has been generated successfully
  by this exemption mechanism object.