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 theTemplateUtil
and 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 boolean
equals(Object obj)
void
fromJSON(net.sf.json.JSONObject jsonObject)
String
getAudience()
Collection<AuthorizationPath>
getPaths()
static void
main(String[] args)
void
setAudience(String audience)
void
setPaths(Collection<AuthorizationPath> paths)
net.sf.json.JSONObject
toJSON()
-
-
-
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)
-
-