Class PolicyRequest
- java.lang.Object
-
- org.technologybrewery.fermenter.stout.authz.json.AbstractAuthorizationRequest
-
- org.technologybrewery.fermenter.stout.authz.json.PolicyRequest
-
public class PolicyRequest extends AbstractAuthorizationRequest
Represents a resource and action pair for which to request a policy decision. Typically, this will include the following: * A simple name by which to represent the policy rule or claim name * A representative resource/action pair that creates a decision pursuant to that rule/claim
-
-
Constructor Summary
Constructors Constructor Description PolicyRequest()PolicyRequest(String name, String resource, String action)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAction()StringgetName()Returns the name or blends the resource and action to create a name, if none is found.StringgetResource()voidsetAction(String action)voidsetName(String name)voidsetResource(String resource)StringtoString()
-
-
-
Field Detail
-
ANY
public static final String ANY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
public String getName()
Returns the name or blends the resource and action to create a name, if none is found.- Returns:
- name of this attribute
-
setName
public void setName(String name)
-
getResource
public String getResource()
-
setResource
public void setResource(String resource)
-
getAction
public String getAction()
-
setAction
public void setAction(String action)
-
-