Class KeyTypeException

  • All Implemented Interfaces:
    java.io.Serializable

    public class KeyTypeException
    extends KeyException
    Key type exception.
    Version:
    2020-03-03
    Author:
    Vladimir Dzhuvinov, stisve
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      KeyTypeException​(java.lang.Class<? extends java.security.Key> expectedKeyClass)
      Creates a new key type exception.
      KeyTypeException​(java.lang.Class<? extends java.security.Key> expectedKeyInterface, java.lang.Class<?>... additionalInterfaces)
      Creates a new key type exception.
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • KeyTypeException

        public KeyTypeException​(java.lang.Class<? extends java.security.Key> expectedKeyClass)
        Creates a new key type exception.
        Parameters:
        expectedKeyClass - The expected key class. Should not be null.
      • KeyTypeException

        public KeyTypeException​(java.lang.Class<? extends java.security.Key> expectedKeyInterface,
                                java.lang.Class<?>... additionalInterfaces)
        Creates a new key type exception.
        Parameters:
        expectedKeyInterface - The expected key interfaces. Should not be null.
        additionalInterfaces - Additional interfaces the key is required to implement.