Ignore:
Timestamp:
05/24/19 14:51:06 (5 years ago)
Author:
bln4
Message:

Implemented EncryptionPermission attribute.

EncryptionPermission is a triple. When specifying the value, if you do not specify the 2nd (group) or 3rd (other) then they default to permission level zero.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/io/Conversion.java

    r1144 r1374  
    522522                value = value.trim();
    523523
    524                 if ((method.getParameterTypes()[0].isEnum()) || (name.matches("setPermission"))) {
     524                if ((method.getParameterTypes()[0].isEnum()) || (name.matches("setPermission")) || (name.matches("setEncryptionPermission"))) {
    525525                        Method convertString;
    526526                        Object[] objects = new Object[1];
     
    650650                }
    651651
    652                 if ((method.getReturnType().isEnum()) || (name.equals("getPermission"))) {
     652                if ((method.getReturnType().isEnum()) || (name.equals("getPermission")) || (name.equals("getEncryptionPermission"))) {
    653653                        try {
    654654                                return output.getClass().getMethod("getCode", new Class[] {})
Note: See TracChangeset for help on using the changeset viewer.