How to Use the SAS Java Authorization Services Interface

standard usage

Example 1: Obtaining the AuthorizationUtilInterface

This is an example of how to get the AuthorizationUtilInterface for a SAS Services-level Metadata object. The interface provides methods to manage setting permissions that grant or deny identities various accesses to the object.

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