Package org.ow2.authzforce.core.pdp.api
Class AttributeFqns
- java.lang.Object
-
- org.ow2.authzforce.core.pdp.api.AttributeFqns
-
public final class AttributeFqns extends Object
Static utility methods pertaining toAttributeFqn
instances.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AttributeFqn
newInstance(String attributeCategory, Optional<String> attributeIssuer, String attributeId)
Creates instance from attribute category, issuer and IDstatic AttributeFqn
newInstance(oasis.names.tc.xacml._3_0.core.schema.wd_17.AttributeDesignatorType attributeDesignator)
CreatesAttributeFqn
from XACML AttributeDesignator
-
-
-
Method Detail
-
newInstance
public static AttributeFqn newInstance(String attributeCategory, Optional<String> attributeIssuer, String attributeId) throws IllegalArgumentException
Creates instance from attribute category, issuer and ID- Parameters:
attributeCategory
- attribute category (non-null)attributeIssuer
- attribute issuer (optional)attributeId
- (non-null)- Returns:
- new instance of
AttributeFqn
- Throws:
IllegalArgumentException
- ifattributeCategory == null || attributeId == null
-
newInstance
public static AttributeFqn newInstance(oasis.names.tc.xacml._3_0.core.schema.wd_17.AttributeDesignatorType attributeDesignator) throws IllegalArgumentException
CreatesAttributeFqn
from XACML AttributeDesignator- Parameters:
attributeDesignator
- attribute designator- Returns:
- new instance of attribute identifier
- Throws:
IllegalArgumentException
- ifattrDes.getCategory() == null || attrDes.getAttributeId() == null
-
-