/** * Sets the public certificates encoded URL. * * <p> * The default value is {@link GoogleOAuthConstants#DEFAULT_PUBLIC_CERTS_ENCODED_URL}. * </p> * * <p> * Overriding is only supported for the purpose of calling the super implementation and changing * the return type, but nothing else. * </p> * * @since 1.15 * @deprecated (scheduled to be removed in 1.18) Use * {@link GooglePublicKeysManager.Builder#setPublicCertsEncodedUrl(String)} instead. */ @Deprecated public Builder setPublicCertsEncodedUrl(String publicKeysEncodedUrl) { // TODO(yanivi): make publicKeys field final when this method is removed publicKeys = new GooglePublicKeysManager.Builder( getTransport(), getJsonFactory()).setPublicCertsEncodedUrl(publicKeysEncodedUrl) .setClock(publicKeys.getClock()).build(); return this; }
private static GooglePublicKeysManager createPublicKeysManager( HttpTransport transport, Clock clock, String certUrl) { return new GooglePublicKeysManager.Builder(transport, new GsonFactory()) .setClock(clock) .setPublicCertsEncodedUrl(certUrl) .build(); } }