code: private AuthorizationInfo getUncachedAuthorizationInfoFromPrincipals(PrincipalCollection principals) {
          SimpleAuthorizationInfo authInfo = new SimpleAuthorizationInfo();
  
          for (PrincipalWithRoles principal : getPrincipalsFromPrincipalCollection(principals)) {
              authInfo.addRoles(principal.getRoles());
          }
  
          return authInfo;
      }
docs: Gets the authorization info for an API key's principals from the source (not from cache).