tu.crossing.JavaCryptographicArchitecture.3.1.2.source-code.KeyManagerFactory.crysl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of JavaCryptographicArchitecture
Show all versions of JavaCryptographicArchitecture
JavaCryptographicArchitecture CrySL ruleset
The newest version!
SPEC javax.net.ssl.KeyManagerFactory
OBJECTS
char[] password;
java.lang.String algorithm;
java.security.KeyStore keyStore;
javax.net.ssl.ManagerFactoryParameters params;
javax.net.ssl.KeyManager[] keyManager;
EVENTS
g1: getInstance(algorithm);
g2: getInstance(algorithm, _);
Get := g1 | g2;
i1: init(keyStore, password);
i2: init(params);
Init := i1 | i2;
gkm1: keyManager = getKeyManagers();
GetKeyMng := gkm1;
ORDER
Get, Init, GetKeyMng?
CONSTRAINTS
neverTypeOf[password, java.lang.String];
notHardCoded[password];
algorithm in {"PKIX", "SunX509"};
REQUIRES
generatedKeyStore[keyStore];
generatedManagerFactoryParameters[params];
ENSURES
generatedKeyManager[this] after Init;
generatedKeyManagers[keyManager] after GetKeyMng;