public class XACMLReaderWriter extends Object
Modifier and Type | Field and Description |
---|---|
static int |
INVALID_XML |
static int |
JSON_PARSE_ERROR |
Constructor and Description |
---|
XACMLReaderWriter() |
Modifier and Type | Method and Description |
---|---|
PrivilegeSet |
fromXACML(PolicySet policySet)
Translate provided XACML PolicySet into OpenAM Privileges, ReferralPrivileges, Applications and ResourceTypes.
|
PrivilegeSet |
read(InputStream xacml)
Reads a sequence of XACML policies as OpenAM Privileges.
|
PolicySet |
toXACML(String realm,
PrivilegeSet privilegeSet)
Translate provided OpenAM Privilege and ReferralPrivilege objects into XACML PolicySet.
|
public static final int JSON_PARSE_ERROR
public static final int INVALID_XML
public PrivilegeSet read(InputStream xacml) throws EntitlementException
xacml
- Non null stream to read.EntitlementException
- If there was any unexpected error.public PrivilegeSet fromXACML(PolicySet policySet) throws EntitlementException
policySet
- The set of policies to translateEntitlementException
- If there was any unexpected error.public PolicySet toXACML(String realm, PrivilegeSet privilegeSet) throws EntitlementException
realm
- The realm to which the provided privileges belong.,privilegeSet
- The Privileges and ReferralPrivileges to translate.EntitlementException
- If there was any unexpected error.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.