public class KeyLengthException extends KeyException
Constructor and Description |
---|
KeyLengthException(Algorithm alg)
Creates a new key length exception.
|
KeyLengthException(int expectedLength,
Algorithm alg)
Creates a new key length exception.
|
KeyLengthException(String message)
Creates a new key length exception.
|
Modifier and Type | Method and Description |
---|---|
Algorithm |
getAlgorithm()
Returns the algorithm.
|
int |
getExpectedKeyLength()
Returns the expected key length.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public KeyLengthException(String message)
message
- The exception message.public KeyLengthException(Algorithm alg)
alg
- The JOSE algorithm, null
if not specified.public KeyLengthException(int expectedLength, Algorithm alg)
expectedLength
- The expected key length in bits, zero if not
specified.alg
- The JOSE algorithm, null
if not
specified.public int getExpectedKeyLength()
public Algorithm getAlgorithm()
null
if not specified.Copyright © 2015 Connect2id Ltd.. All Rights Reserved.