Skip to main content
. 2021 Oct 28;21(21):7154. doi: 10.3390/s21217154
Algorithm 1 GDPR-based ACP Derivation
  • 1:

    input:ConsJF

  • 2:

    output:GACP

  • 3:

    GACP{}

  • 4:

    ConsJFAsPOJOJasonManager.parse(ConsJF)

  • 5:

    cIDConsJFAsPOJO.getCID()

  • 6:

    ifConsJFAsPOJO.isActive()then

  • 7:

      if PolicyManager.isAlreadyGiven(cID) then

  • 8:

        PolicyManager.DenyAllPolicy(cID)

  • 9:

      end if

  • 10:

      Foreach pjConsJFAsPOJO do

  • 11:

        ACRPolicyManager.CreateACPS(pi,cID)

  • 12:

        GACP.add(ACR)

  • 13:

      end for

  • 14:

    else if !ConsJFAsPOJO.isActive() then

  • 15:

      PolicyManager.DenyAllPolicy(cID)

  • 16:

    end if

  • 17:

    returnGACP

  • ▹ Consent as Json File

  • ▹ GDPR-based ACP expressed in XACML

  •  

  •  

  •  

  •  

  •  

  •  

  •  

  • ▹ For each Purpose

  • ▹ Create a specific rule

  • ▹ Add the rule to the current policy

  •  

  •  

  •  

  •  

  • ▹ Return the GDPR-based ACP related with the consent