Package org.onosproject.security
Class AppPermission
- java.lang.Object
-
- java.security.Permission
-
- java.security.BasicPermission
-
- org.onosproject.security.AppPermission
-
- All Implemented Interfaces:
Serializable
,Guard
@Beta public class AppPermission extends BasicPermission
Implementation of API access permission.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AppPermission.Type
-
Field Summary
Fields Modifier and Type Field Description protected AppPermission.Type
type
-
Constructor Summary
Constructors Constructor Description AppPermission(String name)
Creates new application permission using the supplied data.AppPermission(String name, String actions)
Creates new application permission using the supplied data.AppPermission(AppPermission.Type type)
Crates new application permission using the supplied data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AppPermission.Type
getType()
Returns type of permission.-
Methods inherited from class java.security.BasicPermission
equals, getActions, hashCode, implies, newPermissionCollection
-
Methods inherited from class java.security.Permission
checkGuard, getName, toString
-
-
-
-
Field Detail
-
type
protected AppPermission.Type type
-
-
Constructor Detail
-
AppPermission
public AppPermission(String name)
Creates new application permission using the supplied data.- Parameters:
name
- permission name
-
AppPermission
public AppPermission(String name, String actions)
Creates new application permission using the supplied data.- Parameters:
name
- permission nameactions
- permission action
-
AppPermission
public AppPermission(AppPermission.Type type)
Crates new application permission using the supplied data.- Parameters:
type
- permission type
-
-
Method Detail
-
getType
public AppPermission.Type getType()
Returns type of permission.- Returns:
- application permission type
-
-