Package com.wireguard.crypto
Class KeyFormatException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.wireguard.crypto.KeyFormatException
-
- All Implemented Interfaces:
java.io.Serializable
public final class KeyFormatException extends java.lang.Exception
An exception thrown when attempting to parse an invalid key (too short, too long, or byte data inappropriate for the format). The format being parsed can be accessed with thegetFormat()
method.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
KeyFormatException.Type
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Key.Format
getFormat()
KeyFormatException.Type
getType()
-
-
-
Method Detail
-
getFormat
public Key.Format getFormat()
-
getType
public KeyFormatException.Type getType()
-
-