Package ch.admin.bit.jeap.crypto.api
Class CryptoException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
ch.admin.bit.jeap.crypto.api.CryptoException
- All Implemented Interfaces:
Serializable
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic CryptoExceptionbadContainerFormatIdentifier(byte formatIdentifier) static CryptoExceptionbadDataKeyFormatIdentifier(int dataFormatId) static CryptoExceptionbadFieldLength(String fieldName, int actualLength, int expectedLength) static CryptoExceptionbadKeyReferenceType(String keyLocation, String kmsType) static CryptoExceptionbadKeySize(int size, int expectedSize) static CryptoExceptionbadNonceLength(int length, int expectedLength) static CryptoExceptiondecryptDataKeyFailed(Exception cause, String keyLocation) static CryptoExceptionstatic CryptoExceptionduplicateKeyId(KeyId keyId) static CryptoExceptionstatic CryptoExceptionstatic CryptoExceptionstatic CryptoExceptiongeneralSecurityException(String message, GeneralSecurityException exception) static CryptoExceptiongetDataKeyFailed(Exception cause, String keyLocation) static CryptoExceptiongetDataKeyFailed(String keyLocation) static CryptoExceptioninitializationFailed(com.amazon.corretto.crypto.provider.SelfTestStatus selfTestStatus) static CryptoExceptionmissingEscrowKey(KeyReference wrappingKeyReference) static CryptoExceptionstatic CryptoExceptionnullKey()static CryptoExceptionunexpectedBufferSize(int remainingBytes) static CryptoExceptionunknownAlgorithmId(int expected, int actual) static CryptoExceptionstatic CryptoExceptionunknownEscrowKeyType(EscrowKeyType escrowKeyType) static CryptoExceptionunknownKeyId(KeyId keyId) static CryptoExceptionunknownProviderId(byte[] keyProviderIdBytes) Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
encryptionFailed
-
decryptionFailed
-
nullKey
-
badKeySize
-
initializationFailed
public static CryptoException initializationFailed(com.amazon.corretto.crypto.provider.SelfTestStatus selfTestStatus) -
badNonceLength
-
getDataKeyFailed
-
getDataKeyFailed
-
decryptDataKeyFailed
-
badContainerFormatIdentifier
-
badFieldLength
public static CryptoException badFieldLength(String fieldName, int actualLength, int expectedLength) -
emptyCiphertext
-
emptyPlaintext
-
unexpectedBufferSize
-
missingWrappingKeyReference
-
badKeyReferenceType
-
unknownKeyId
-
unknownProviderId
-
badDataKeyFormatIdentifier
-
unknownAlgorithmId
-
duplicateKeyId
-
unknownCiphertextFormat
-
generalSecurityException
public static CryptoException generalSecurityException(String message, GeneralSecurityException exception) -
unknownEscrowKeyType
-
missingEscrowKey
-