Class PolicyPojo


  • public final class PolicyPojo
    extends Object
    Policy POJO for (un)marshalling to (from) JSON
    • Constructor Detail

      • PolicyPojo

        public PolicyPojo​(String id,
                          String version,
                          String type,
                          String content)
        Constructor
        Parameters:
        id - Policy(Set) ID
        version - Policy(Set) version
        type - policy type, e.g. "{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}Policy" (resp. {urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}PolicySet) for XACML 3.0 Policy (resp. PolicySet)
        content - Policy(Set) document as plain text
    • Method Detail

      • getType

        public String getType()
        Returns:
        the type
      • getId

        public String getId()
        Returns:
        the id
      • getVersion

        public String getVersion()
        Returns:
        the version
      • getContent

        public String getContent()
        Returns:
        the content
      • toStringWithoutContent

        public String toStringWithoutContent()
        Same as toString() but the resulting string does not contain the content, only the metadata (type, id, version)
        Returns:
        string similar to toString() without content