Class PolicyPojo
- java.lang.Object
-
- org.ow2.authzforce.core.pdp.testutil.ext.PolicyPojo
-
public final class PolicyPojo extends Object
Policy POJO for (un)marshalling to (from) JSON
-
-
Constructor Summary
Constructors Constructor Description PolicyPojo(String id, String version, String type, String content)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getContent()
String
getId()
String
getType()
String
getVersion()
String
toString()
String
toStringWithoutContent()
Same astoString()
but the resulting string does not contain the content, only the metadata (type, id, version)
-
-
-
Constructor Detail
-
PolicyPojo
public PolicyPojo(String id, String version, String type, String content)
Constructor- Parameters:
id
- Policy(Set) IDversion
- Policy(Set) versiontype
- 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 astoString()
but the resulting string does not contain the content, only the metadata (type, id, version)- Returns:
- string similar to
toString()
without content
-
-