Module Encryption
Provides predicates and classes relating to encryption in Java.
Import path
import semmle.code.java.security.Encryption
Imports
java |
Provides all default Java QL imports. |
Predicates
getASecureAlgorithmName |
Gets the name of an algorithm that is known to be secure. |
getAnInsecureAlgorithmName |
Gets the name of an algorithm that is known to be insecure. |
getAnInsecureHashAlgorithmName |
Gets the name of a hash algorithm that is insecure if it is being used for encryption. |
getInsecureAlgorithmRegex |
Gets the regular expression used for matching strings that look like they contain an algorithm that is known to be insecure. |
getSecureAlgorithmRegex |
Gets a regular expression for matching strings that look like they contain an algorithm that is known to be secure. |
Classes
AlgoParamGeneratorInitMethod |
The |
AlgorithmParameterGenerator |
The Java class |
AlgorithmParameterSpec |
An implementation of the |
BeginHandshakeMethod |
The |
CreateSocket | |
CreateSslEngineMethod |
The |
CryptoAlgoSpec |
Any use of a cryptographic element that specifies an encryption algorithm. For example, methods returning ciphers, decryption methods, constructors of cipher classes, etc. |
DhGenParameterSpec |
The Java class |
DsaGenParameterSpec |
The Java class |
EcGenParameterSpec |
The Java class |
GetSocketFactory | |
GetSslSessionMethod |
The |
HostnameVerifier | |
HostnameVerifierVerify |
The |
HttpsUrlConnection |
The |
JavaSecurityAlgoParamGenerator |
A call to the |
JavaSecurityAlgoSpec | |
JavaSecurityKeyPairGenerator |
A call to the |
JavaSecurityMessageDigest | |
JavaSecuritySignature | |
JavaxCryptoAlgoSpec | |
JavaxCryptoCipher | |
JavaxCryptoKeyAgreement | |
JavaxCryptoKeyFactory | |
JavaxCryptoKeyGenerator | |
JavaxCryptoSecretKey | |
KeyGenerator |
The Java class |
KeyGeneratorInitMethod |
The |
KeyPairGenerator |
The Java class |
KeyPairGeneratorInitMethod |
The |
RsaKeyGenParameterSpec |
The Java class |
SetConnectionFactoryMethod |
The |
SetDefaultConnectionFactoryMethod |
The |
SetDefaultHostnameVerifierMethod |
The |
SetHostnameVerifierMethod | |
SslClass | |
SslContext | |
SslEngine |
The |
SslParameters |
The |
SslSession |
The |
SslSocket |
The |
SslSocketFactory | |
SslUnwrapMethod |
The |
SslWrapMethod |
The |
TrustManagerCheckMethod | |
X509TrustManager |
Aliases
SSLClass |
DEPRECATED: Alias for SslClass |
SSLContext |
DEPRECATED: Alias for SslContext |
SSLEngine |
DEPRECATED: Alias for SslEngine |
SSLParameters |
DEPRECATED: Alias for SslParameters |
SSLSession |
DEPRECATED: Alias for SslSession |
SSLSocket |
DEPRECATED: Alias for SslSocket |
SSLSocketFactory |
DEPRECATED: Alias for SslSocketFactory |