public static interface DOFPermission.Factory
DOFPermission.addFactory(Factory)
Modifier and Type | Method and Description |
---|---|
DOFPermission |
create(byte[] data)
Creates and returns a Permission object of the correct type from a byte array.
|
boolean |
isSupportedType(short permissionType)
Validate that this factory knows how to create the given permission type.
|
boolean isSupportedType(short permissionType)
permissionType
- The permission type.DOFPermission create(byte[] data) throws DOFException
isSupportedType(short)
returns true for must be supported.data
- A byte array of data containing the permission in serialized form.DOFException
- If the permission could not be deserialized.