/** * Sets the key with {@code keyId} as primary. * * @throws GeneralSecurityException if the key is not found or not enabled * @deprecated use {@link setPrimary} */ @GuardedBy("this") @Deprecated public synchronized KeysetManager promote(int keyId) throws GeneralSecurityException { return setPrimary(keyId); }