Apache CXF API

org.apache.cxf.rs.security.oauth.data
Class Permission

java.lang.Object
  extended by org.apache.cxf.rs.security.oauth.data.Permission
Direct Known Subclasses:
OAuthPermission

public class Permission
extends Object

Base permission description which is visible to authorization handlers

See Also:
OAuthAuthorizationData

Constructor Summary
Permission()
           
Permission(String permission, String description)
           
 
Method Summary
 String getDescription()
           
 String getPermission()
           
 boolean isDefault()
           
 void setDefault(boolean value)
          Indicates that this permission has been allocated by default.
 void setDescription(String description)
           
 void setPermission(String permission)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Permission

public Permission()

Permission

public Permission(String permission,
                  String description)
Method Detail

getDescription

public String getDescription()

setDescription

public void setDescription(String description)

getPermission

public String getPermission()

setPermission

public void setPermission(String permission)

setDefault

public void setDefault(boolean value)
Indicates that this permission has been allocated by default. Authorization View handlers may use this property in order to restrict the list of scopes which may be refused to non-default scopes only

Parameters:
isDefault -

isDefault

public boolean isDefault()

Apache CXF API

Apache CXF