How to Use the SAS Java Authorization Services Interface

standard usage

Example 2: Getting the IdentityInterface List for permissions set on an object.

This is an example of getting the IdentityInterface objects for permissions set on a SAS Java MetadataInterface object.

     try
     {
        MetadataInterface object;  // any Services-level MetadataInterface object type will work here (your code must fill this in)
        AuthorizationUtilInterface authUtil = object.getAuthorizationUtil();
        List<IdentityInterface>identities = authUtil.getIdentities();
     }
     catch (ServiceException e)
     {
        e.printStackTrace();
     }
     catch (RemoteException e)
     {
        e.printStackTrace();
     }