|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cxf.rs.security.oauth2.common.Permission org.apache.cxf.rs.security.oauth2.common.OAuthPermission
public class OAuthPermission
Provides the complete information about a given opaque permission. For example, a scope parameter such as "read_calendar" will be translated into the instance of this class in order to provide the human readable description and optionally restrict it to a limited set of HTTP verbs and request URIs
Constructor Summary | |
---|---|
OAuthPermission()
|
|
OAuthPermission(String permission,
String description)
|
Method Summary | |
---|---|
List<String> |
getHttpVerbs()
Gets the optional list of HTTP verbs |
List<String> |
getUris()
Gets the optional list of relative request URIs |
void |
setHttpVerbs(List<String> httpVerbs)
Sets the optional list of HTTP verbs, example, "GET" and "POST", etc |
void |
setUris(List<String> uri)
Sets the optional list of relative request URIs |
Methods inherited from class org.apache.cxf.rs.security.oauth2.common.Permission |
---|
getDescription, getPermission, isDefault, setDefault, setDescription, setPermission |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OAuthPermission()
public OAuthPermission(String permission, String description)
Method Detail |
---|
public void setHttpVerbs(List<String> httpVerbs)
httpVerbs
- the list of HTTP verbspublic List<String> getHttpVerbs()
public void setUris(List<String> uri)
uri
- the list of URIspublic List<String> getUris()
|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |