# SecurityHandler

Element | Missed Instructions | Cov. | Missed Branches | Cov. | Missed | Cxty | Missed | Lines | Missed | Methods
Total | 145 of 875 | 83% | 22 of 92 | 76% | 24 | 82 | 36 | 206 | 3 | 36
decryptStream(COSStream, long, long) |  | 59% |  | 64% | 5 | 8 | 10 | 27 | 0 | 1
decryptString(COSString, long, long) |  | 53% |  | 50% | 1 | 2 | 4 | 11 | 0 | 1
decrypt(COSBase, long, long) |  | 69% |  | 66% | 3 | 7 | 5 | 15 | 0 | 1
prepareAESInitializationVector(boolean, byte[], InputStream, OutputStream) |  | 56% |  | 66% | 2 | 4 | 2 | 11 | 0 | 1
encryptDataAES256(InputStream, OutputStream, boolean) |  | 81% |  | 50% | 2 | 3 | 4 | 15 | 0 | 1
encryptDataAESother(byte[], InputStream, OutputStream, boolean) |  | 86% |  | 66% | 2 | 4 | 3 | 15 | 0 | 1
setCustomSecureRandom(SecureRandom) |  | 0% |  | n/a | 1 | 1 | 2 | 2 | 1 | 1
setProtectionPolicy(ProtectionPolicy) |  | 0% |  | n/a | 1 | 1 | 2 | 2 | 1 | 1
getSecureRandom() |  | 70% |  | 50% | 1 | 2 | 1 | 3 | 0 | 1
isAES() |  | 0% |  | n/a | 1 | 1 | 1 | 1 | 1 | 1
decryptDictionary(COSDictionary, long, long) |  | 98% |  | 86% | 3 | 12 | 1 | 14 | 0 | 1
encryptStream(COSStream, long, int) |  | 96% |  | 50% | 1 | 2 | 1 | 7 | 0 | 1
hasProtectionPolicy() |  | 85% |  | 50% | 1 | 2 | 0 | 1 | 0 | 1
calcFinalKey(long, long) |  | 100% |  | 100% | 0 | 2 | 0 | 16 | 0 | 1
encryptData(long, long, InputStream, OutputStream, boolean) |  | 100% |  | 100% | 0 | 4 | 0 | 8 | 0 | 1
SecurityHandler(ProtectionPolicy) |  | 100% |  | n/a | 0 | 1 | 0 | 9 | 0 | 1
createCipher(byte[], byte[], boolean) |  | 100% |  | 100% | 0 | 2 | 0 | 5 | 0 | 1
computeVersionNumber() |  | 100% |  | 100% | 0 | 5 | 0 | 7 | 0 | 1
SecurityHandler() |  | 100% |  | n/a | 0 | 1 | 0 | 7 | 0 | 1
encryptString(COSString, long, int) |  | 100% |  | n/a | 0 | 1 | 0 | 5 | 0 | 1
static {...} |  | 100% |  | n/a | 0 | 1 | 0 | 2 | 0 | 1
decryptArray(COSArray, long, long) |  | 100% |  | 100% | 0 | 2 | 0 | 3 | 0 | 1
encryptDataRC4(byte[], InputStream, OutputStream) |  | 100% |  | n/a | 0 | 1 | 0 | 3 | 0 | 1
encryptDataRC4(byte[], byte[], OutputStream) |  | 100% |  | n/a | 0 | 1 | 0 | 3 | 0 | 1
setKeyLength(int) |  | 100% |  | n/a | 0 | 1 | 0 | 2 | 0 | 1
setDecryptMetadata(boolean) |  | 100% |  | n/a | 0 | 1 | 0 | 2 | 0 | 1
setStringFilterName(COSName) |  | 100% |  | n/a | 0 | 1 | 0 | 2 | 0 | 1
setStreamFilterName(COSName) |  | 100% |  | n/a | 0 | 1 | 0 | 2 | 0 | 1
setCurrentAccessPermission(AccessPermission) |  | 100% |  | n/a | 0 | 1 | 0 | 2 | 0 | 1
setAES(boolean) |  | 100% |  | n/a | 0 | 1 | 0 | 2 | 0 | 1
setEncryptionKey(byte[]) |  | 100% |  | n/a | 0 | 1 | 0 | 2 | 0 | 1
isDecryptMetadata() |  | 100% |  | n/a | 0 | 1 | 0 | 1 | 0 | 1
getKeyLength() |  | 100% |  | n/a | 0 | 1 | 0 | 1 | 0 | 1
getCurrentAccessPermission() |  | 100% |  | n/a | 0 | 1 | 0 | 1 | 0 | 1
getProtectionPolicy() |  | 100% |  | n/a | 0 | 1 | 0 | 1 | 0 | 1
getEncryptionKey() |  | 100% |  | n/a | 0 | 1 | 0 | 1 | 0 | 1