Modify Group Permissions for an Existing Key
The user can modify the group permissions for an existing key through API.
Create an
NAESession
object.Create an
NAEKey
object. Pass the keyname and session object as arguments.Modify the permissions.
Code sample
NAESession session = NAESession.getSession("user1", "password".toCharArray());
NAEKey key = NAEKey.getSecretKey("keyName", session);
key.modifyPermissions(NAEPermission[] permissions);