code: protected void createGoogleAppsPublicKey() throws Exception {
          if (!isValidConfiguration()) {
              LOGGER.debug("Google Apps public key bean will not be created, because it's not configured");
              return;
          }
  
          val bean = new PublicKeyFactoryBean();
          if (this.publicKeyLocation.startsWith(ResourceUtils.CLASSPATH_URL_PREFIX)) {
              bean.setResource(new ClassPathResource(StringUtils.removeStart(this.publicKeyLocation, ResourceUtils.CLASSPATH_URL_PREFIX)));
          } else if (this.publicKeyLocation.startsWith(ResourceUtils.FILE_URL_PREFIX)) {
              bean.setResource(new FileSystemResource(StringUtils.removeStart(this.publicKeyLocation, ResourceUtils.FILE_URL_PREFIX)));
          } else {
              bean.setResource(new FileSystemResource(this.publicKeyLocation));
          }
  
          bean.setAlgorithm(this.keyAlgorithm);
          LOGGER.debug("Loading Google Apps public key from [{}] with key algorithm [{}]",
              bean.getResource(), bean.getAlgorithm());
          bean.afterPropertiesSet();
          LOGGER.debug("Creating Google Apps public key instance via [{}]", this.publicKeyLocation);
          this.publicKey = bean.getObject();
      }
docs: Create the public key.
  
  @throws Exception if key creation ran into an error