@Entity public class OAuthPermission extends Object implements Serializable
Constructor and Description |
---|
OAuthPermission() |
OAuthPermission(String permission) |
OAuthPermission(String permission,
String description) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
String |
getDescription()
Gets the permission description
|
List<String> |
getHttpVerbs()
Gets the optional list of HTTP verbs
|
String |
getPermission()
Get the permission value such as "read_calendar"
|
List<String> |
getUris()
Gets the optional list of relative request URIs
|
int |
hashCode() |
boolean |
isDefaultPermission() |
boolean |
isInvisibleToClient() |
void |
setDefaultPermission(boolean value)
Indicates if this permission has been allocated by default or not.
|
void |
setDescription(String description)
Sets the permission description
|
void |
setHttpVerbs(List<String> httpVerbs)
Sets the optional list of HTTP verbs, example,
"GET" and "POST", etc
|
void |
setInvisibleToClient(boolean invisibleToClient)
Set the visibility status; by default all the scopes approved by a user can
be optionally reported to the client in access token responses.
|
void |
setPermission(String permission)
Sets the permission value such as "read_calendar"
|
void |
setUris(List<String> uri)
Sets the optional list of relative request URIs
|
public OAuthPermission()
public OAuthPermission(String permission)
public List<String> getHttpVerbs()
public void setHttpVerbs(List<String> httpVerbs)
httpVerbs
- the list of HTTP verbspublic List<String> getUris()
public void setUris(List<String> uri)
uri
- the list of URIspublic String getDescription()
public void setDescription(String description)
description
- public String getPermission()
public void setPermission(String permission)
permission
- the permission valuepublic void setDefaultPermission(boolean value)
value
- true if the permission has been allocated by defaultpublic boolean isDefaultPermission()
public boolean isInvisibleToClient()
public void setInvisibleToClient(boolean invisibleToClient)
invisibleToClient
- Apache CXF