Class StoutAttributeUtils
- java.lang.Object
-
- org.technologybrewery.fermenter.stout.authz.StoutAttributeUtils
-
public final class StoutAttributeUtils extends Object
Utility methods for fetching attributes.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetXacmlCategory(String category)Transforms the shortened version of categories used to simplify things stout into their fulL XACML format.static StringgetXacmlType(String type)Transforms the shortened version of types used to simplify things stout into their fulL XACML format.static oasis.names.tc.xacml._3_0.core.schema.wd_17.AttributeDesignatorTypetranslateAttributeToXacmlFormat(StoutAttribute attribute)Translates a Stout attribute into the more complex, but standards-compliance XACML version.
-
-
-
Method Detail
-
translateAttributeToXacmlFormat
public static oasis.names.tc.xacml._3_0.core.schema.wd_17.AttributeDesignatorType translateAttributeToXacmlFormat(StoutAttribute attribute)
Translates a Stout attribute into the more complex, but standards-compliance XACML version.- Parameters:
attribute- stout attribute- Returns:
- XACML version of the attribute
-
getXacmlCategory
public static String getXacmlCategory(String category)
Transforms the shortened version of categories used to simplify things stout into their fulL XACML format.- Parameters:
category- Stout category- Returns:
- XACML category
-
-