Class AuthorizationTemplate
- java.lang.Object
-
- org.oa4mp.server.loader.oauth2.tokens.AuthorizationTemplate
-
public class AuthorizationTemplate extends Object
This is an entry for theAuthorizationTemplates. Each is keyed to an audience and this is how permissions are found. An audience may be any string and may include templates. Note that these templates have nothing to do with theTemplateUtiland its uses!Created by Jeff Gaynor
on 8/2/18 at 2:41 PM
-
-
Constructor Summary
Constructors Constructor Description AuthorizationTemplate(String audience, Collection<AuthorizationPath> paths)AuthorizationTemplate(net.sf.json.JSONObject json)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)voidfromJSON(net.sf.json.JSONObject jsonObject)StringgetAudience()Collection<AuthorizationPath>getPaths()static voidmain(String[] args)voidsetAudience(String audience)voidsetPaths(Collection<AuthorizationPath> paths)net.sf.json.JSONObjecttoJSON()
-
-
-
Constructor Detail
-
AuthorizationTemplate
public AuthorizationTemplate(net.sf.json.JSONObject json)
-
AuthorizationTemplate
public AuthorizationTemplate(String audience, Collection<AuthorizationPath> paths)
-
-
Method Detail
-
getAudience
public String getAudience()
-
setAudience
public void setAudience(String audience)
-
getPaths
public Collection<AuthorizationPath> getPaths()
-
setPaths
public void setPaths(Collection<AuthorizationPath> paths)
-
toJSON
public net.sf.json.JSONObject toJSON()
-
fromJSON
public void fromJSON(net.sf.json.JSONObject jsonObject)
-
main
public static void main(String[] args)
-
-