Package com.google.k2crypto.exceptions

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

Related Classes of com.google.k2crypto.exceptions.KeyModifierException

Copyright © 2018 www.massapicom. 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.