code: public boolean isAuthorizedForBucket(AuthContext ctx, Bucket bucket) {
          if (ctx.getUsername().equals(adminName)) {
              return ctx.getPassword().equals(adminPass);
          }
  
          if (bucket.getName().equals(ctx.getUsername())) {
              return bucket.getPassword().equals(ctx.getPassword());
          }
  
          return bucket.getPassword().isEmpty() && ctx.getPassword().isEmpty();
      }
docs: Determine if the given credentials allow access to the bucket
  @param ctx The credentials
  @param bucket The bucket to check against
  @return true if the credentials match the bucket's credentials, or if the bucket is not password protected, or if
  the credentials match the administrative credentials