Examples of KeyModifierException


Examples of com.google.k2crypto.exceptions.KeyModifierException

   * @throws KeyModifierException
   */
  protected void removeKeyVersion(KeyVersion keyversion)
      throws KeyModifierException {
    if (!keyVersions.contains(keyversion)) {
      throw new KeyModifierException(
          "Given KeyVersion is not in the Key");
    } else if (this.primary == keyversion) {
      throw new KeyModifierException(
          "Cannot remove KeyVersion as it is the primary in the Key");
    } else {
      this.keyVersions.remove(keyversion);
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.