Class AuthorizationPath
- java.lang.Object
-
- org.oa4mp.server.loader.oauth2.tokens.AuthorizationPath
-
public class AuthorizationPath extends Object
Created by Jeff Gaynor
on 9/11/18 at 6:25 PM
-
-
Constructor Summary
Constructors Constructor Description AuthorizationPath(String operation)Constructor for a fixed scope (e.g. compute.modify) that has no path and should never be downscoped.AuthorizationPath(String operation, String path)AuthorizationPath(String operation, String path, boolean isExtensible)AuthorizationPath(net.sf.json.JSONObject json)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)voidfromJSON(net.sf.json.JSONObject j)voidfromString(String template)This allows populating this from a single string of the form operation:pathStringgetOperation()StringgetPath()booleanhasPath()booleanisExtensible()voidsetExtensible(boolean extensible)net.sf.json.JSONObjecttoJSON()StringtoPath()Return this as path representation of this object.StringtoString()
-
-
-
Constructor Detail
-
AuthorizationPath
public AuthorizationPath(net.sf.json.JSONObject json)
-
AuthorizationPath
public AuthorizationPath(String operation)
Constructor for a fixed scope (e.g. compute.modify) that has no path and should never be downscoped.- Parameters:
operation-
-
-
Method Detail
-
isExtensible
public boolean isExtensible()
-
setExtensible
public void setExtensible(boolean extensible)
-
getOperation
public String getOperation()
-
getPath
public String getPath()
-
hasPath
public boolean hasPath()
-
toJSON
public net.sf.json.JSONObject toJSON()
-
fromJSON
public void fromJSON(net.sf.json.JSONObject j)
-
fromString
public void fromString(String template)
This allows populating this from a single string of the form operation:path- Parameters:
template-
-
toPath
public String toPath()
Return this as path representation of this object. Note that this is used in comparisons, whiletoString()is used for printing and such.- Returns:
-
-