Class NoSuchKeyVersionException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
edu.ucsb.cs.scaffold.errors.NoSuchKeyVersionException
All Implemented Interfaces:
Serializable

public class NoSuchKeyVersionException extends RuntimeException
Thrown when a stored PAT was encrypted under a key version for which no key material is currently configured (e.g. PREVIOUS_PAT_ENCRYPTION_KEY was removed before the rotate-keys job re-encrypted every credential). The affected credential cannot be decrypted; the user must re-enter their PAT unless the missing key is restored.
See Also:
  • Constructor Details

    • NoSuchKeyVersionException

      public NoSuchKeyVersionException(int keyVersion)