Class VulnerabilityHelper
java.lang.Object
org.palladiosimulator.pcm.confidentiality.attacker.helper.VulnerabilityHelper
-
Method Summary
Modifier and TypeMethodDescriptionstatic Vulnerability
checkAttack
(boolean authenticated, List<Vulnerability> vulnerabilities, List<Attack> attacks, AttackVector vector, List<Role> roles) Checks whether an attack is possible and returns theVulnerability
with the highest impact on Confidentiality.static List<RoleSystemIntegration>
getRoles
(AttackerSystemSpecificationContainer vulnerabilityspecification) static List<Vulnerability>
getVulnerabilities
(List<VulnerabilitySystemIntegration> vulnerabilitySpecification, MethodSpecification methodSpecification) static List<Vulnerability>
getVulnerabilities
(List<VulnerabilitySystemIntegration> vulnerabilitySpecification, org.palladiosimulator.pcm.core.composition.AssemblyContext component) static List<Vulnerability>
getVulnerabilities
(List<VulnerabilitySystemIntegration> vulnerabilitySpecification, org.palladiosimulator.pcm.resourceenvironment.LinkingResource resource) static List<Vulnerability>
getVulnerabilities
(List<VulnerabilitySystemIntegration> vulnerabilitySpecification, org.palladiosimulator.pcm.resourceenvironment.ResourceContainer resource) static List<Vulnerability>
getVulnerabilities
(AttackerSystemSpecificationContainer vulnerabilityspecification, MethodSpecification methodSpecification) static List<Vulnerability>
getVulnerabilities
(AttackerSystemSpecificationContainer vulnerabilityspecification, org.palladiosimulator.pcm.core.composition.AssemblyContext component) static List<Vulnerability>
getVulnerabilities
(AttackerSystemSpecificationContainer vulnerabilityspecification, org.palladiosimulator.pcm.resourceenvironment.LinkingResource resource) static List<Vulnerability>
getVulnerabilities
(AttackerSystemSpecificationContainer vulnerabilityspecification, org.palladiosimulator.pcm.resourceenvironment.ResourceContainer resource) static void
initializeVulnerabilityStorage
(AttackerSystemSpecificationContainer vulnerabilityspecification) static void
resetMap()
-
Method Details
-
checkAttack
public static Vulnerability checkAttack(boolean authenticated, List<Vulnerability> vulnerabilities, List<Attack> attacks, AttackVector vector, List<Role> roles) Checks whether an attack is possible and returns theVulnerability
with the highest impact on Confidentiality. If the vulnerabilities contain multiple vulnerabilities with highest impact it returns any vulnerability of it- Parameters:
credentials
-policies
-vulnerabilities
-attacks
-vector
-- Returns:
Vulnerability
with the highest ConfidentialityImpact if no attack is possible null
-
initializeVulnerabilityStorage
public static void initializeVulnerabilityStorage(AttackerSystemSpecificationContainer vulnerabilityspecification) -
resetMap
public static void resetMap() -
getVulnerabilities
public static List<Vulnerability> getVulnerabilities(AttackerSystemSpecificationContainer vulnerabilityspecification, org.palladiosimulator.pcm.resourceenvironment.ResourceContainer resource) -
getRoles
public static List<RoleSystemIntegration> getRoles(AttackerSystemSpecificationContainer vulnerabilityspecification) -
getVulnerabilities
public static List<Vulnerability> getVulnerabilities(List<VulnerabilitySystemIntegration> vulnerabilitySpecification, org.palladiosimulator.pcm.resourceenvironment.ResourceContainer resource) -
getVulnerabilities
public static List<Vulnerability> getVulnerabilities(AttackerSystemSpecificationContainer vulnerabilityspecification, org.palladiosimulator.pcm.core.composition.AssemblyContext component) -
getVulnerabilities
public static List<Vulnerability> getVulnerabilities(AttackerSystemSpecificationContainer vulnerabilityspecification, MethodSpecification methodSpecification) -
getVulnerabilities
public static List<Vulnerability> getVulnerabilities(List<VulnerabilitySystemIntegration> vulnerabilitySpecification, MethodSpecification methodSpecification) -
getVulnerabilities
public static List<Vulnerability> getVulnerabilities(List<VulnerabilitySystemIntegration> vulnerabilitySpecification, org.palladiosimulator.pcm.core.composition.AssemblyContext component) -
getVulnerabilities
public static List<Vulnerability> getVulnerabilities(AttackerSystemSpecificationContainer vulnerabilityspecification, org.palladiosimulator.pcm.resourceenvironment.LinkingResource resource) -
getVulnerabilities
public static List<Vulnerability> getVulnerabilities(List<VulnerabilitySystemIntegration> vulnerabilitySpecification, org.palladiosimulator.pcm.resourceenvironment.LinkingResource resource)
-